GL Studio C++ Runtime API
|
#include <util.h>
Public Member Functions | |
GlsPropString () | |
Default constructor. Creates an empty GlsPropString. | |
GlsPropString (const std::string &str) | |
GlsPropString (const char *str) | |
operator std::string () const | |
std::string & | String () |
Public Attributes | |
std::string | _string |
The underlying wrapped string. | |
Friends | |
bool | operator== (const GlsPropString &str1, const GlsPropString &str2) |
bool | operator!= (const GlsPropString &str1, const GlsPropString &str2) |
GlsPropString is designed to be used as a string in GL Studio Class Properties. It writes itself out as a single line, and will read in up to the next newline. It will attempt to convert itself to and from std::strings. If it is used in a GlsMultiVal, there must be only one, and it must be the last entry in the GlsMultiVal instance. See GlsPropStringQuoted for more usefulness in GlsMultiVal.
|
inline |
Create a new GlsPropString using the provided std string.
str | The std::string to use to create the GlsPropString. |
|
inline |
Create a new GlsPropString using the provided C-style string.
str | The C-style string to use to create the GlsPropString. |
|
inline |
|
inline |
Get the string value for this object.
|
friend |
Checks lexicographic inequality of the two arguments.
str1 | One object to compare. |
str2 | The other object to compare. |
|
friend |
Checks lexicographic equality of the two arguments.
str1 | One object to compare. |
str2 | The other object to compare. |