Represents a DBus Path.
More...
#include <path.h>
Inherits std::string.
|
| Path () |
|
| Path (const std::string &s, size_type pos=0, size_type n=npos) |
|
| Path (const char *) |
|
| Path (const char *s, size_type n) |
|
| Path (size_type n, char c) |
|
template<class InputIterator > |
| Path (InputIterator first, InputIterator last) |
|
| ~Path () |
|
| operator bool () const |
|
bool | is_valid () const |
|
std::vector< std::string > | decomposed () const |
| Decomposes the string into its component elements. More...
|
|
bool | append_element (const std::string &element) |
| Adds the element string to the path ensuring delimeters are properly taken care of. More...
|
|
Represents a DBus Path.
Paths have slashes in them(e.g. /com/example/MusicPlayer1)
- Author
- Rick L Vinyard Jr rviny.nosp@m.ard@.nosp@m.cs.nm.nosp@m.su.e.nosp@m.du
◆ Path() [1/6]
◆ Path() [2/6]
DBus::Path::Path |
( |
const std::string & |
s, |
|
|
size_type |
pos = 0 , |
|
|
size_type |
n = npos |
|
) |
| |
◆ Path() [3/6]
DBus::Path::Path |
( |
const char * |
s | ) |
|
◆ Path() [4/6]
DBus::Path::Path |
( |
const char * |
s, |
|
|
size_type |
n |
|
) |
| |
◆ Path() [5/6]
DBus::Path::Path |
( |
size_type |
n, |
|
|
char |
c |
|
) |
| |
◆ Path() [6/6]
template<class InputIterator >
DBus::Path::Path |
( |
InputIterator |
first, |
|
|
InputIterator |
last |
|
) |
| |
|
inline |
◆ ~Path()
◆ append_element()
bool DBus::Path::append_element |
( |
const std::string & |
element | ) |
|
Adds the element string to the path ensuring delimeters are properly taken care of.
An element that contains invalid characters will not be added to the path.
- Returns
- True if the element was succesfully added, false otherwise.
References DBUSCXX_VALID_PATH_CHARACTERS, and DBus::npos.
◆ decomposed()
std::vector< std::string > DBus::Path::decomposed |
( |
| ) |
const |
Decomposes the string into its component elements.
If the path is invalid or non-existant an empty vector will be returned.
If the path is the root path a vector containing a single empty string will be returned. In this way a valid root path is differentiated from an invalid or empty path.
References is_valid().
◆ is_valid()
bool DBus::Path::is_valid |
( |
| ) |
const |
◆ operator bool()
DBus::Path::operator bool |
( |
| ) |
const |
The documentation for this class was generated from the following files: