OSVR-Core
Public Member Functions | List of all members
osvr::common::elements::StringElement Class Reference

The element type corresponding to a string value such as a JSON string. More...

#include <PathElementTypes.h>

Inheritance diagram for osvr::common::elements::StringElement:
osvr::common::elements::ElementBase< StringElement >

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.
 
- Public Member Functions inherited from osvr::common::elements::ElementBase< StringElement >
const char * getTypeName () const
 

Additional Inherited Members

- Public Types inherited from osvr::common::elements::ElementBase< StringElement >
typedef StringElement type
 
typedef ElementBase< StringElementbase_type
 
- Protected Member Functions inherited from osvr::common::elements::ElementBase< StringElement >
 ElementBase ()
 Protected constructor to force subclassing. More...
 

Detailed Description

The element type corresponding to a string value such as a JSON string.

Member Function Documentation

§ getString()

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.


The documentation for this class was generated from the following files: