25 #ifndef INCLUDED_ParseAlias_h_GUID_F34B71BE_C378_4999_CE65_16AC5D1A80F1 26 #define INCLUDED_ParseAlias_h_GUID_F34B71BE_C378_4999_CE65_16AC5D1A80F1 29 #include <osvr/Common/Export.h> 32 #include <json/value.h> 42 OSVR_COMMON_EXPORT
ParsedAlias(std::string
const &src);
48 OSVR_COMMON_EXPORT
bool isValid()
const;
51 OSVR_COMMON_EXPORT
bool isSimple()
const;
54 OSVR_COMMON_EXPORT std::string
getLeaf()
const;
57 void setLeaf(std::string
const &leaf);
60 OSVR_COMMON_EXPORT std::string
getAlias()
const;
67 void m_parse(std::string
const &src);
68 void m_parse(Json::Value &val);
69 Json::Value &m_leaf();
70 Json::Value
const &m_leaf()
const;
76 #endif // INCLUDED_ParseAlias_h_GUID_F34B71BE_C378_4999_CE65_16AC5D1A80F1 Handles spatial transformations.
Definition: SerializationTraitExample_Complicated.h:40
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
OSVR_COMMON_EXPORT ParsedAlias(std::string const &src)
Constructor - performs parse and normalization of format.
Definition: ParseAlias.cpp:60
Definition: ParseAlias.h:39
OSVR_COMMON_EXPORT Json::Value getAliasValue() const
Gets a copy of the normalized version of the alias as a Json::Value.
Definition: ParseAlias.cpp:85
OSVR_COMMON_EXPORT std::string getAlias() const
Get the normalized, cleaned, compacted version of the alias.
Definition: ParseAlias.cpp:72
void setLeaf(std::string const &leaf)
Set the leaf of the alias: should be an absolute path.
Definition: ParseAlias.cpp:70
OSVR_COMMON_EXPORT std::string getLeaf() const
Get the ultimate source/leaf of the alias.
Definition: ParseAlias.cpp:69
OSVR_COMMON_EXPORT bool isSimple() const
Is this a simple (string-only, no transform) alias?
Definition: ParseAlias.cpp:68
OSVR_COMMON_EXPORT bool isValid() const
Did the alias parse in a valid way?
Definition: ParseAlias.cpp:66