Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Usage: More...
#include <LineSplitter.h>
Public Types | |
typedef size_t | line_idx |
Public Member Functions | |
line_idx | get_index () const |
StreamReaderLE & | get_stream () |
access the underlying stream object More... | |
template<size_t N> | |
void | get_tokens (const char *(&tokens)[N]) const |
extract the start positions of N tokens from the current line More... | |
template<size_t N> | |
AI_FORCE_INLINE void | get_tokens (const char *(&tokens)[N]) const |
LineSplitter (const LineSplitter &)=delete | |
LineSplitter (LineSplitter &&)=delete | |
LineSplitter (StreamReaderLE &stream, bool skip_empty_lines=true, bool trim=true) | |
construct from existing stream reader note: trim is always assumed true if skyp_empty_lines==true More... | |
bool | match_start (const char *check) |
!strcmp((*this)->substr(0,strlen(check)),check) More... | |
operator bool () const | |
boolean context More... | |
operator line_idx () const | |
line indices are zero-based, empty lines are included More... | |
std::string | operator* () const |
LineSplitter & | operator++ () |
pseudo-iterator increment More... | |
LineSplitter & | operator++ (int) |
const std::string * | operator-> () const |
member access More... | |
LineSplitter & | operator= (const LineSplitter &)=delete |
const char * | operator[] (size_t idx) const |
get a pointer to the beginning of a particular token More... | |
void | swallow_next_increment () |
swallow the next call to ++, return the previous value. More... | |
~LineSplitter () | |
Usage:
typedef size_t Assimp::LineSplitter::line_idx |
AI_FORCE_INLINE Assimp::LineSplitter::LineSplitter | ( | StreamReaderLE & | stream, |
bool | skip_empty_lines = true , |
||
bool | trim = true |
||
) |
construct from existing stream reader note: trim is always assumed true if skyp_empty_lines==true
AI_FORCE_INLINE Assimp::LineSplitter::~LineSplitter | ( | ) |
|
delete |
|
delete |
AI_FORCE_INLINE LineSplitter::line_idx Assimp::LineSplitter::get_index | ( | ) | const |
AI_FORCE_INLINE StreamReaderLE & Assimp::LineSplitter::get_stream | ( | ) |
access the underlying stream object
void Assimp::LineSplitter::get_tokens | ( | const char *(&) | tokens[N] | ) | const |
extract the start positions of N tokens from the current line
AI_FORCE_INLINE void Assimp::LineSplitter::get_tokens | ( | const char *(&) | tokens[N] | ) | const |
AI_FORCE_INLINE bool Assimp::LineSplitter::match_start | ( | const char * | check | ) |
!strcmp((*this)->substr(0,strlen(check)),check)
AI_FORCE_INLINE Assimp::LineSplitter::operator bool | ( | ) | const |
boolean context
AI_FORCE_INLINE Assimp::LineSplitter::operator line_idx | ( | ) | const |
line indices are zero-based, empty lines are included
AI_FORCE_INLINE std::string Assimp::LineSplitter::operator* | ( | ) | const |
AI_FORCE_INLINE LineSplitter & Assimp::LineSplitter::operator++ | ( | ) |
pseudo-iterator increment
AI_FORCE_INLINE LineSplitter & Assimp::LineSplitter::operator++ | ( | int | ) |
AI_FORCE_INLINE const std::string * Assimp::LineSplitter::operator-> | ( | ) | const |
member access
|
delete |
AI_FORCE_INLINE const char * Assimp::LineSplitter::operator[] | ( | size_t | idx | ) | const |
get a pointer to the beginning of a particular token
AI_FORCE_INLINE void Assimp::LineSplitter::swallow_next_increment | ( | ) |
swallow the next call to ++, return the previous value.