OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
|
ComRef - component reference. More...
#include <ComRef.h>
Public Member Functions | |
ComRef () | |
ComRef (const std::string &path) | |
ComRef (const char *path) | |
~ComRef () | |
ComRef (const ComRef ©) | |
ComRef & | operator= (const ComRef ©) |
ComRef | operator+ (const ComRef &rhs) const |
return ComRef(lhs + rhs) - Obs! lhs will lose its suffix More... | |
bool | isValidIdent () const |
bool | isEmpty () const |
bool | isRootOf (ComRef child) const |
ComRef | front () const |
returns the first part of the ComRef (including suffix if its the only part) More... | |
ComRef | pop_front () |
returns the first part of the ComRef and removed it from the current object More... | |
std::string | suffix () const |
returns the suffix as string More... | |
std::string | pop_suffix () |
returns the suffix as string and removes it from the current object More... | |
bool | pop_suffix (const std::string &suffix) |
bool | hasSuffix () const |
returns true if the cref has a suffix, i.e. contains ":" More... | |
bool | hasSuffix (const std::string &suffix) const |
returns true if the cref has a suffix that matches the argument More... | |
const char * | c_str () const |
size_t | size () const |
operator std::string () const | |
Static Public Member Functions | |
static bool | isValidIdent (const std::string &ident) |
Private Attributes | |
char * | cref |
ComRef - component reference.
A component reference is a qualified name of a component. It uses '.' as component separator. It may also contain a ':' followed by a suffix string which is used to define attributes or filenames.
oms::ComRef::ComRef | ( | ) |
oms::ComRef::ComRef | ( | const std::string & | path | ) |
oms::ComRef::ComRef | ( | const char * | path | ) |
oms::ComRef::~ComRef | ( | ) |
oms::ComRef::ComRef | ( | const ComRef & | copy | ) |
|
inline |
oms::ComRef oms::ComRef::front | ( | ) | const |
returns the first part of the ComRef (including suffix if its the only part)
bool oms::ComRef::hasSuffix | ( | ) | const |
returns true if the cref has a suffix, i.e. contains ":"
bool oms::ComRef::hasSuffix | ( | const std::string & | suffix | ) | const |
returns true if the cref has a suffix that matches the argument
bool oms::ComRef::isEmpty | ( | ) | const |
bool oms::ComRef::isRootOf | ( | ComRef | child | ) | const |
|
static |
bool oms::ComRef::isValidIdent | ( | ) | const |
|
inline |
oms::ComRef oms::ComRef::operator+ | ( | const ComRef & | rhs | ) | const |
oms::ComRef & oms::ComRef::operator= | ( | const ComRef & | copy | ) |
oms::ComRef oms::ComRef::pop_front | ( | ) |
returns the first part of the ComRef and removed it from the current object
std::string oms::ComRef::pop_suffix | ( | ) |
returns the suffix as string and removes it from the current object
bool oms::ComRef::pop_suffix | ( | const std::string & | suffix | ) |
size_t oms::ComRef::size | ( | ) | const |
std::string oms::ComRef::suffix | ( | ) | const |
returns the suffix as string
|
private |