|
#include <RobotAPI/libraries/aron/core/Path.h>
Public Member Functions | |
std::string | getDelimeter () const |
std::string | getFirstElement () const |
std::string | getLastElement () const |
std::vector< std::string > | getPath () const |
std::string | getRootIdentifier () const |
Path | getWithoutPrefix (const Path &) const |
bool | hasDirectPrefix (const Path &) const |
bool | hasElement () const |
bool | hasPrefix (const Path &) const |
Path & | operator= (const armarx::aron::Path &)=default |
copy operator More... | |
Path () | |
default constructor More... | |
Path (const Path &) | |
copy constructor More... | |
Path (const Path &, const std::vector< std::string > &) | |
append constructor More... | |
Path (const std::vector< std::string > &) | |
default constructor, taking a list of strings (a path) More... | |
void | setDelimeter (const std::string &) |
void | setRootIdentifier (const std::string &) |
size_t | size () const |
std::string | toString () const |
Path | withAcceptedType (bool escape=false) const |
Path | withAcceptedTypeIndex (int, bool escape=false) const |
Path | withDetachedFirstElement () const |
Path | withDetachedLastElement () const |
Path | withElement (const std::string &, bool escape=false) const |
Path | withIndex (int, bool escape=false) const |
Static Public Member Functions | |
static Path | FromString (const std::string &, const std::string &rootIdentifier=DEFAULT_ROOT_IDENTIFIER, const std::string &delimeter=DEFAULT_DELIMETER) |
Static Public Attributes | |
static const constexpr char * | DEFAULT_DELIMETER = "->" |
static const constexpr char * | DEFAULT_ROOT_IDENTIFIER = "_ARON" |
The Path class.
It is used to keep track of the internal tree-like structure of a variant and can be converted into a string for debugging purposes and exception message generation. Further, it can be used to navigate through a type or data object
Path | ( | ) |
Path | ( | const std::vector< std::string > & | p | ) |
|
static |
std::string getDelimeter | ( | ) | const |
std::string getFirstElement | ( | ) | const |
std::string getLastElement | ( | ) | const |
std::vector< std::string > getPath | ( | ) | const |
std::string getRootIdentifier | ( | ) | const |
bool hasDirectPrefix | ( | const Path & | e | ) | const |
bool hasElement | ( | ) | const |
bool hasPrefix | ( | const Path & | e | ) | const |
|
default |
copy operator
void setDelimeter | ( | const std::string & | d | ) |
void setRootIdentifier | ( | const std::string & | s | ) |
size_t size | ( | ) | const |
std::string toString | ( | ) | const |
Path withAcceptedType | ( | bool | escape = false | ) | const |
Path withAcceptedTypeIndex | ( | int | i, |
bool | escape = false |
||
) | const |
Path withDetachedFirstElement | ( | ) | const |
Path withDetachedLastElement | ( | ) | const |
Path withElement | ( | const std::string & | s, |
bool | escape = false |
||
) | const |
Path withIndex | ( | int | i, |
bool | escape = false |
||
) | const |
|
staticconstexpr |
|
staticconstexpr |