25 #ifndef INCLUDED_ParseAlias_h_GUID_F34B71BE_C378_4999_CE65_16AC5D1A80F1
26 #define INCLUDED_ParseAlias_h_GUID_F34B71BE_C378_4999_CE65_16AC5D1A80F1
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
bool isValid() const
Did the alias parse in a valid way?
ParsedAlias(std::string const &src)
Constructor - performs parse and normalization of format.
Json::Value getAliasValue() const
Gets a copy of the normalized version of the alias as a Json::Value.
std::string getLeaf() const
Get the ultimate source/leaf of the alias.
std::string getAlias() const
Get the normalized, cleaned, compacted version of the alias.
Automatically-generated export header - do not edit!
void setLeaf(std::string const &leaf)
Set the leaf of the alias: should be an absolute path.
bool isSimple() const
Is this a simple (string-only, no transform) alias?