|
RTC Toolkit
1.0.0
|
This class provides a wraper for DataPoint paths which ensures that they only contain valid characters. More...
#include <dataPointPath.hpp>
Classes | |
| class | InvalidPathException |
| Exception class used when an invalid character is used in a DataPointPath. More... | |
Public Member Functions | |
| DataPointPath ()=default | |
| DataPointPath (const DataPointPath &)=default | |
| DataPointPath & | operator= (const DataPointPath &)=default |
| DataPointPath (DataPointPath &&)=default | |
| DataPointPath & | operator= (DataPointPath &&)=default |
| virtual | ~DataPointPath ()=default |
| DataPointPath (const std::string &new_path) | |
| Create DataPointPath from a string. More... | |
| DataPointPath (std::string &&new_path) | |
| Create DataPointPath from a string. More... | |
| DataPointPath (const char *const new_path) | |
| Create DataPointPath from a const char *. More... | |
| const std::string & | ToString () const noexcept |
| Get string representing the DataPointPath. More... | |
| DataPointPath & | operator= (const std::string &new_path) |
| Assignment operator from string. More... | |
| DataPointPath & | operator= (std::string &&new_path) |
| Assignment operator from string (move) More... | |
| operator std::string () const noexcept | |
| This cast operator allows using DataPointPath in places where std::string is needed. More... | |
| DataPointPath & | operator+= (const DataPointPath &rhs) |
| Append another DataPointPath to this DataPointPath without adding a path seperator. More... | |
| DataPointPath & | operator/= (const DataPointPath &rhs) |
| Append another DataPointPath to this DataPointPath with a path seperator inbetween. More... | |
| elt::mal::Uri | ToRepositoryURI (const elt::mal::Uri &base_uri) const |
| Return URI. More... | |
Friends | |
| DataPointPath | operator+ (DataPointPath lhs, const DataPointPath &rhs) |
| Concatenate two DataPointPaths without adding a path seperator. More... | |
| DataPointPath | operator/ (DataPointPath lhs, const DataPointPath &rhs) |
| Concatenate two DataPointPaths with a path seperator inbetween. More... | |
| std::ostream & | operator<< (std::ostream &out, const DataPointPath &rhs) |
| Output to ostream. More... | |
| bool | operator== (const DataPointPath &lhs, const char *rhs) noexcept |
| bool | operator!= (const DataPointPath &lhs, const char *rhs) noexcept |
| bool | operator== (const DataPointPath &lhs, const std::string &rhs) noexcept |
| bool | operator!= (const DataPointPath &lhs, const std::string &rhs) noexcept |
| bool | operator== (const DataPointPath &lhs, const DataPointPath &rhs) noexcept |
| bool | operator!= (const DataPointPath &lhs, const DataPointPath &rhs) noexcept |
| bool | operator== (const char *lhs, const DataPointPath &rhs) noexcept |
| bool | operator!= (const char *lhs, const DataPointPath &rhs) noexcept |
| bool | operator== (const std::string &lhs, const DataPointPath &rhs) noexcept |
| bool | operator!= (const std::string &lhs, const DataPointPath &rhs) noexcept |
| std::istream & | operator>> (std::istream &input, DataPointPath &path) |
| Read into DataPointPath from istream. More... | |
This class provides a wraper for DataPoint paths which ensures that they only contain valid characters.
Trying to use paths with invalid characters with this class will raise an exception.
|
default |
|
default |
|
default |
|
virtualdefault |
|
explicit |
Create DataPointPath from a string.
| new_path | the initial path |
| Can | throw a runtime error, when invalid characters are found. Only a-z,0-9,_,/ are allowed. |
|
explicit |
Create DataPointPath from a string.
| new_path | the initial path |
| Can | throw a runtime error, when invalid characters are found. Only a-z,0-9,_,/ are allowed. |
|
inlineexplicit |
Create DataPointPath from a const char *.
| new_path | the initial path |
| Can | throw a runtime error, when invalid characters are found. Only a-z,0-9,_,/ are allowed. |
|
inlinenoexcept |
This cast operator allows using DataPointPath in places where std::string is needed.
this will just return the internal string.
Cast operator to string (implicit)
|
inline |
Append another DataPointPath to this DataPointPath without adding a path seperator.
| rhs |
|
inline |
Append another DataPointPath to this DataPointPath with a path seperator inbetween.
| rhs |
|
default |
| DataPointPath & rtctk::componentFramework::DataPointPath::operator= | ( | const std::string & | new_path | ) |
Assignment operator from string.
| new_path | the new path to use |
| Can | throw a runtime error, when invalid characters are found. Only a-z,0-9,_,/ are allowed. |
|
default |
| DataPointPath & rtctk::componentFramework::DataPointPath::operator= | ( | std::string && | new_path | ) |
Assignment operator from string (move)
| new_path | the new path to use |
| Can | throw a runtime error, when invalid characters are found. Only a-z,0-9,_,/ are allowed. |
| elt::mal::Uri rtctk::componentFramework::DataPointPath::ToRepositoryURI | ( | const elt::mal::Uri & | base_uri | ) | const |
Return URI.
| base_uri | the initial path This function generates an Uri, given a base_uri |
|
inlinenoexcept |
Get string representing the DataPointPath.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Concatenate two DataPointPaths without adding a path seperator.
| lhs | left hand side operand |
| rhs | right hand side operand |
|
friend |
Concatenate two DataPointPaths with a path seperator inbetween.
| lhs | left hand side operand |
| rhs | right hand side operand |
|
friend |
Output to ostream.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Read into DataPointPath from istream.