Photon C++ Client API
5.0.7.3
|
Public Member Functions | |
BaseCharString () | |
virtual | ~BaseCharString (void) |
virtual | operator const char * (void) const =0 |
virtual | operator JString (void) const =0 |
const char * | cstr (void) const |
virtual JString | JStringRepresentation (void) const =0 |
unsigned int | length (void) const |
virtual unsigned int | size (void) const =0 |
virtual JString & | toString (JString &retStr, bool withTypes=false) const |
virtual JString & | toString (JString &retStr, bool withTypes=false) const=0 |
JString | toString (bool withTypes=false) const |
Public Member Functions inherited from Base | |
virtual | ~Base (void)=0 |
Public Member Functions inherited from LoggingBase< Base > | |
virtual | ~LoggingBase (void)=0 |
Public Member Functions inherited from ToString | |
virtual | ~ToString (void) |
virtual JString | typeToString (void) const |
JString | toString (bool withTypes=false) const |
Additional Inherited Members | |
Static Public Member Functions inherited from LoggingBase< Base > | |
static void | setListener (const BaseListener *pBaseListener) |
static int | getDebugOutputLevel (void) |
static bool | setDebugOutputLevel (int debugLevel) |
static const LogFormatOptions & | getLogFormatOptions (void) |
static void | setLogFormatOptions (const LogFormatOptions &options) |
The BaseCharString class is the abstract base class for container classes, holding char* strings.
You are encouraged to add additional subclasses for encodings, for which there are no subclasses provided out of the box.
Subclasses of this class act as convenience classes for conversions between instances of class JString and char*'s.
The encoding of the char*'s is defined by the subclass. There should be one subclass for every supported encoding.
Subclasses of this class should only be used to hold or pass strings and for conversions between string encodings. Please use class JString for common string operations and modifications.
BaseCharString | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
operator const char*.
Copies a pointer to the content of its right operand into its left operand.
This overwrites old data in the left operand.
Implemented in ANSIString, and UTF8String.
|
pure virtual |
operator JString.
Copies a JString representation of its right operand into its left operand.
This overwrites old data in the left operand.
Implemented in ANSIString, and UTF8String.
const char * cstr | ( | void | ) | const |
|
pure virtual |
Implemented in ANSIString, and UTF8String.
unsigned int length | ( | void | ) | const |
|
pure virtual |
The default implementation of this function will just return length(), but for multibyte strings like UTF8String the return values of length() and size() can differ.
Implemented in ANSIString, and UTF8String.
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
Implements ToString.
toString |
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
JString toString |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
withTypes | set to true, to include type information in the generated string |