OSVR-Core
|
The element type corresponding to a string value such as a JSON string. More...
#include <PathElementTypes.h>
Public Member Functions | |
OSVR_COMMON_EXPORT | StringElement () |
Default constructor. | |
OSVR_COMMON_EXPORT | StringElement (std::string const &s) |
Constructor with value. | |
OSVR_COMMON_EXPORT std::string & | getString () |
Get/set (if non const) the stored string. | |
OSVR_COMMON_EXPORT std::string const & | getString () const |
bool | operator== (StringElement const &other) const |
Equality comparison operator. | |
![]() | |
const char * | getTypeName () const |
Additional Inherited Members | |
![]() | |
typedef StringElement | type |
typedef ElementBase< StringElement > | base_type |
![]() | |
ElementBase () | |
Protected constructor to force subclassing. More... | |
The element type corresponding to a string value such as a JSON string.
std::string const & osvr::common::elements::StringElement::getString | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.