32 #ifndef _OMS_COM_REF_H_
33 #define _OMS_COM_REF_H_
50 ComRef(
const std::string& path);
68 std::string
suffix()
const;
77 operator std::string()
const {
return std::string(
cref); }
91 struct hash<
oms::ComRef>
95 return hash<std::string>()(std::string(cref));
ComRef - component reference.
Definition: ComRef.h:47
std::string pop_suffix()
returns the suffix as string and removes it from the current object
Definition: ComRef.cpp:118
~ComRef()
Definition: ComRef.cpp:57
ComRef pop_front()
returns the first part of the ComRef and removed it from the current object
Definition: ComRef.cpp:184
std::string suffix() const
returns the suffix as string
Definition: ComRef.cpp:146
ComRef operator+(const ComRef &rhs) const
return ComRef(lhs + rhs) - Obs! lhs will lose its suffix
Definition: ComRef.cpp:79
bool isEmpty() const
Definition: ComRef.cpp:99
char * cref
Definition: ComRef.h:80
ComRef & operator=(const ComRef ©)
Definition: ComRef.cpp:67
bool isRootOf(ComRef child) const
Definition: ComRef.cpp:155
ComRef()
Definition: ComRef.cpp:42
size_t size() const
Definition: ComRef.cpp:205
const char * c_str() const
Definition: ComRef.h:75
ComRef front() const
returns the first part of the ComRef (including suffix if its the only part)
Definition: ComRef.cpp:166
bool hasSuffix() const
returns true if the cref has a suffix, i.e. contains ":"
Definition: ComRef.cpp:104
bool isValidIdent() const
Definition: ComRef.cpp:94
bool operator<(const ComRef &lhs, const ComRef &rhs)
Definition: ComRef.cpp:220
bool operator==(const ComRef &lhs, const ComRef &rhs)
Definition: ComRef.cpp:210
bool operator!=(const ComRef &lhs, const ComRef &rhs)
Definition: ComRef.cpp:215
size_t operator()(const oms::ComRef &cref) const
Definition: ComRef.h:93