![]() |
Simplygon C++ API
8.3.35800.0
|
#include <SimplygonSDK.h>
Public Member Functions | |
const char * | GetText () const |
bool | IsEmpty () const |
bool | IsNull () const |
operator const char * () const | |
IString * | operator-> () const |
rstring & | operator= (const rstring &p) |
rstring (const rstring &p) | |
rstring (IString *p=nullptr) | |
~rstring () | |
The rstring is a help class that handles type conversion and reference counting for the IString interface. The IString class is used to represent strings that are created by the API objects, and returned to the caller. The strings are reference counted and constant strings, and can be retrieved, but not modified. All methods that input a string value does this using basic null-terminated char-pointers. For simplicity it is recommended to never use the IString interface directly, but instead through an rstring object, which inherits from a CountedPointer of IString, and that also adds help code and conversions.
Definition at line 437 of file SimplygonSDK.h.
|
inline |
Constructs a rstring from an IData interface pointer.
p | is a pointer to an IString object, or nullptr to make the rstring point at nothing. |
Definition at line 444 of file SimplygonSDK.h.
|
inline |
Points an rstring at content of another rstring. Adds reference count ot the IString object
p | is an rstring that points at an IString object or nullptr |
Definition at line 453 of file SimplygonSDK.h.
|
inline |
Destructs the rdata, and releases one reference to the IData object, if the rdata currently points at an object.
Definition at line 461 of file SimplygonSDK.h.
|
inline |
Method to retrieve the string value as a const char *. If the rstring does not point at an object, NULL is returned
Definition at line 483 of file SimplygonSDK.h.
|
inline |
Method to check if the rstring is empty, which is the case if the rstring does not point at an IString object, the IString object does not contain a string, or the string exists, but has zero length.
Definition at line 502 of file SimplygonSDK.h.
|
inline |
Method to check if the rstring pointer is nullptr.
Definition at line 512 of file SimplygonSDK.h.
|
inline |
Operator to cast the rstring into a const char *. If the rstring does not point at an object, NULL is returned
Definition at line 493 of file SimplygonSDK.h.
|
inline |
Operator that returns a standard pointer to the IString that rstring is referencing. Please use IsNull to
check if the pointer is nullptr before using.
Definition at line 524 of file SimplygonSDK.h.
Operator that sets the rstring to point at the same IString as the source rstring
Definition at line 469 of file SimplygonSDK.h.