My Project
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
Text Struct Reference

Stores a text. More...

#include <OpenDDLCommon.h>

Public Member Functions

 Text (const char *buffer, size_t numChars)
 The constructor with a given text buffer. More...
 
 ~Text ()
 The destructor.
 
void clear ()
 Clears the text.
 
void set (const char *buffer, size_t numChars)
 Set a new text. More...
 
bool operator== (const std::string &name) const
 The compare operator for std::strings.
 
bool operator== (const Text &rhs) const
 The compare operator for Texts.
 

Public Attributes

size_t m_capacity
 The capacity of the text.
 
size_t m_len
 The length of the text.
 
char * m_buffer
 The buffer with the text.
 

Detailed Description

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.

Constructor & Destructor Documentation

Text::Text ( const char *  buffer,
size_t  numChars 
)
inline

The constructor with a given text buffer.

Parameters
buffer[in] The buffer.
numChars[in] The number of characters in the buffer.

Member Function Documentation

void Text::set ( const char *  buffer,
size_t  numChars 
)
inline

Set a new text.

Parameters
buffer[in] The buffer.
numChars[in] The number of characters in the buffer.

The documentation for this struct was generated from the following file: