Assimp
v3.1.1 (June 2014)
|
Stores a text. More...
Public Member Functions | |
void | clear () |
Clears the text. More... | |
bool | operator== (const std::string &name) const |
The compare operator for std::strings. More... | |
bool | operator== (const Text &rhs) const |
The compare operator for Texts. More... | |
void | set (const char *buffer, size_t numChars) |
Set a new text. More... | |
Text (const char *buffer, size_t numChars) | |
The constructor with a given text buffer. More... | |
~Text () | |
The destructor. More... | |
Public Attributes | |
char * | m_buffer |
The buffer with the text. More... | |
size_t | m_capacity |
The capacity of the text. More... | |
size_t | m_len |
The length of the text. More... | |
Stores a text.
A text is stored in a simple character buffer. Texts buffer can be greater than the number of stored characters in them.
BEGIN_ODDLPARSER_NS Text::Text | ( | const char * | buffer, |
size_t | numChars | ||
) |
The constructor with a given text buffer.
buffer | [in] The buffer. |
numChars | [in] The number of characters in the buffer. |
Text::~Text | ( | ) |
The destructor.
void Text::clear | ( | ) |
Clears the text.
bool Text::operator== | ( | const std::string & | name | ) | const |
The compare operator for std::strings.
bool Text::operator== | ( | const Text & | rhs | ) | const |
The compare operator for Texts.
void Text::set | ( | const char * | buffer, |
size_t | numChars | ||
) |
Set a new text.
buffer | [in] The buffer. |
numChars | [in] The number of characters in the buffer. |
char* Text::m_buffer |
The buffer with the text.
size_t Text::m_capacity |
The capacity of the text.
size_t Text::m_len |
The length of the text.