|
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 | |
| template<size_t N> | |
| void | get_tokens (const char *(&tokens)[N]) const |
| extract the start positions of N tokens from the current line | |
| template<size_t N> | |
| AI_FORCE_INLINE void | get_tokens (const char *(&tokens)[N]) const |
| const char * | getEnd () 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 | |
| bool | match_start (const char *check) |
| !strcmp((*this)->substr(0,strlen(check)),check) | |
| operator bool () const | |
| boolean context | |
| operator line_idx () const | |
| line indices are zero-based, empty lines are included | |
| std::string | operator* () const |
| LineSplitter & | operator++ () |
| pseudo-iterator increment | |
| LineSplitter & | operator++ (int) |
| const std::string * | operator-> () const |
| member access | |
| LineSplitter & | operator= (const LineSplitter &)=delete |
| const char * | operator[] (size_t idx) const |
| get a pointer to the beginning of a particular token | |
| void | swallow_next_increment () |
| swallow the next call to ++, return the previous value. | |
| ~LineSplitter ()=default | |
Usage:
| 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
|
default |
|
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
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 const char * Assimp::LineSplitter::getEnd | ( | ) | 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.