36#ifndef _OMS_COM_REF_H_
37#define _OMS_COM_REF_H_
54 ComRef(
const std::string& path);
72 std::string
suffix()
const;
81 operator std::string()
const {
return std::string(
cref); }
95 struct hash<
oms::ComRef>
99 return hash<std::string>()(std::string(cref));
ComRef - component reference.
Definition ComRef.h:51
std::string pop_suffix()
returns the suffix as string and removes it from the current object
Definition ComRef.cpp:122
~ComRef()
Definition ComRef.cpp:61
ComRef pop_front()
returns the first part of the ComRef and removed it from the current object
Definition ComRef.cpp:188
std::string suffix() const
returns the suffix as string
Definition ComRef.cpp:150
const char * c_str() const
Definition ComRef.h:79
ComRef operator+(const ComRef &rhs) const
return ComRef(lhs + rhs) - Obs! lhs will lose its suffix
Definition ComRef.cpp:83
bool isEmpty() const
Definition ComRef.cpp:103
char * cref
Definition ComRef.h:84
ComRef & operator=(const ComRef ©)
Definition ComRef.cpp:71
bool isRootOf(ComRef child) const
Definition ComRef.cpp:159
ComRef()
Definition ComRef.cpp:46
size_t size() const
Definition ComRef.cpp:209
ComRef front() const
returns the first part of the ComRef (including suffix if its the only part)
Definition ComRef.cpp:170
bool hasSuffix() const
returns true if the cref has a suffix, i.e. contains ":"
Definition ComRef.cpp:108
bool isValidIdent() const
Definition ComRef.cpp:98
bool operator<(const ComRef &lhs, const ComRef &rhs)
Definition ComRef.cpp:224
bool operator==(const ComRef &lhs, const ComRef &rhs)
Definition ComRef.cpp:214
bool operator!=(const ComRef &lhs, const ComRef &rhs)
Definition ComRef.cpp:219
size_t operator()(const oms::ComRef &cref) const
Definition ComRef.h:97