MeshLib Documentation
Loading...
Searching...
No Matches
MRIOParsing.h File Reference
#include "MRMeshFwd.h"
#include "MRExpected.h"
#include "MRBuffer.h"
#include "MRPch/MRBindingMacros.h"
#include <istream>

Go to the source code of this file.

Namespaces

namespace  MR
 

Functions

MRMESH_API std::vector< size_t > MR::splitByLines (const char *data, size_t size)
 
MRMESH_API std::streamoff MR::getStreamSize (std::istream &in)
 
MRMESH_API Expected< std::string > MR::readString (std::istream &in)
 
MR_BIND_IGNORE MRMESH_API Expected< Buffer< char > > MR::readCharBuffer (std::istream &in)
 
template<typename T >
Expected< void > MR::parseTextCoordinate (const std::string_view &str, Vector3< T > &v, Vector3< T > *n=nullptr, Color *c=nullptr)
 
template<typename T >
Expected< void > MR::parseObjCoordinate (const std::string_view &str, Vector3< T > &v, Vector3< T > *c=nullptr)
 
template<typename T >
Expected< void > MR::parsePtsCoordinate (const std::string_view &str, Vector3< T > &v, Color &c)
 
MRMESH_API Expected< void > MR::parseFirstNum (const std::string_view &str, int &num)
 
MRMESH_API Expected< void > MR::parsePolygon (const std::string_view &str, VertId *vertId, int *numPoints)
 
template<typename T >
Expected< void > MR::parseAscCoordinate (const std::string_view &str, Vector3< T > &v, Vector3< T > *n=nullptr, Color *c=nullptr)
 
template<typename T >
Expected< void > MR::parseSingleNumber (const std::string_view &str, T &num)