Pothos
0.2.1-g9f04573d
The Pothos dataflow programming software suite
|
#include <Path.hpp>
Public Member Functions | |
PluginPath (void) | |
PluginPath (const std::string &path) | |
PluginPath (const char *path) | |
PluginPath (const PluginPath &path) | |
~PluginPath (void) | |
PluginPath & | operator= (const PluginPath &path) |
PluginPath | join (const std::string &subPath) const |
std::vector< std::string > | listNodes (void) const |
std::string | toString (void) const |
Plugin path represents a UNIX-style path for the plugin hierarchy. All paths must be absolute and start with the root slash. Node names must be alphanumeric, underscored, hyphenated. Example of a valid path: /foo_bar/my-module
|
explicit |
Create a PluginPath at the root ("/")
Pothos::PluginPath::PluginPath | ( | const std::string & | path | ) |
Create a PluginPath from a path string. A PluginPathError will be thrown on bad format.
path | a plugin path in string representation |
Pothos::PluginPath::PluginPath | ( | const char * | path | ) |
Create a PluginPath from a path string.
PluginPathError | if bad format. |
path | a plugin path in string representation |
Pothos::PluginPath::PluginPath | ( | const PluginPath & | path | ) |
Copy constructor for PluginPath.
path | the PluginPath to copy |
Pothos::PluginPath::~PluginPath | ( | void | ) |
Destructor for PluginPath.
PluginPath Pothos::PluginPath::join | ( | const std::string & | subPath | ) | const |
Join a subpath with the path in this PluginPath.
PluginPathError | if bad format. |
subPath | the path to append to the end |
std::vector<std::string> Pothos::PluginPath::listNodes | ( | void | ) | const |
List the nodes that make up the path. Basically, this splits the path at the slashes.
PluginPath& Pothos::PluginPath::operator= | ( | const PluginPath & | path | ) |
Assignment operator for PluginPath.
path | the PluginPath to assign to this |
std::string Pothos::PluginPath::toString | ( | void | ) | const |
Get the PluginPath as a string representation.