OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::common::elements::StringElement Class Reference

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

#include <osvr/Common/PathElementTypes.h>

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

Public Member Functions

 StringElement ()
 Default constructor.
 
 StringElement (std::string const &s)
 Constructor with value.
 
std::string & getString ()
 Get/set (if non const) the stored string.
 
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
< StringElement
base_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.

Definition at line 217 of file PathElementTypes.h.

Member Function Documentation

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.

Definition at line 85 of file PathElementTypes.cpp.


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