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