ASN1C C/C++ Common Runtime
ASN1C v7.2.x
|
#include <OSRTUTF8String.h>
Public Member Functions | |
OSRTUTF8String () | |
OSRTUTF8String (const char *strval) | |
OSRTUTF8String (const OSUTF8CHAR *strval) | |
OSRTUTF8String (const OSRTUTF8String &str) | |
virtual | ~OSRTUTF8String () |
OSRTBaseType * | clone () const |
void | copyValue (const char *str) |
const char * | c_str () const |
const char * | getValue () const |
void | print (const char *name) |
void | setValue (const char *str) |
OSRTUTF8String & | operator= (const OSRTUTF8String &original) |
UTF-8 string. This is the base class for generated C++ data type classes for XSD string types (string, token, NMTOKEN, etc.).
OSRTUTF8String::OSRTUTF8String | ( | ) |
The default constructor creates an empty string.
OSRTUTF8String::OSRTUTF8String | ( | const char * | strval | ) |
This constructor initializes the string to contain the given character string value.
strval | - String value |
OSRTUTF8String::OSRTUTF8String | ( | const OSUTF8CHAR * | strval | ) |
This constructor initializes the string to contain the given UTF-8 character string value.
strval | - String value |
OSRTUTF8String::OSRTUTF8String | ( | const OSRTUTF8String & | str | ) |
Copy constructor.
str | - C++ XML string class. |
|
virtual |
The destructor frees string memory if the memory ownership flag is set.
|
inline |
This method returns the pointer to C null terminated string.
|
inlinevirtual |
Clone method. Creates a copied instance and returns pointer to OSRTBaseType.
Reimplemented from OSRTBaseType.
void OSRTUTF8String::copyValue | ( | const char * | str | ) |
This method copies the given string value to the internal string storage variable. A deep-copy of the given value is done; the class will delete this memory when the object is deleted.
str | - C null-terminated string. |
|
inline |
This method returns the pointer to UTF-8 null terminated string.
OSRTUTF8String& OSRTUTF8String::operator= | ( | const OSRTUTF8String & | original | ) |
Assignment operator.
|
inline |
This method prints the string value to standard output.
name | - Name of generated string variable. |
References rtxPrintCharStr().
void OSRTUTF8String::setValue | ( | const char * | str | ) |
This method sets the string value to the given string. A deep-copy of the given value is not done; the pointer is stored directly in the class member variable.
str | - C null-terminated string. |