|
Robot Raconteur Companion C++ Library
|
Go to the source code of this file.
Functions | |
| template<typename T> | |
| static T | RobotRaconteur::Companion::Util::LoadInfoFileFromString (const std::string &file_text, std::vector< LocalIdentifierLockPtr > &identifier_locks, const std::string &category="unspecified", boost::shared_ptr< RobotRaconteur::RobotRaconteurNode > node=boost::shared_ptr< RobotRaconteur::RobotRaconteurNode >()) |
| Load an info file from a string. | |
| template<typename T> | |
| static T | RobotRaconteur::Companion::Util::LoadInfoFile (const std::string &file_name, std::vector< LocalIdentifierLockPtr > &identifier_locks, const std::string &category="unspecified", boost::shared_ptr< RobotRaconteur::RobotRaconteurNode > node=boost::shared_ptr< RobotRaconteur::RobotRaconteurNode >()) |
| Load an info file from a file. | |
| template<typename T> | |
| static T | RobotRaconteur::Companion::Util::LoadInfoFileFromNode (YAML::Node &node, std::vector< LocalIdentifierLockPtr > &identifier_locks, const std::string &category="unspecified", boost::shared_ptr< RobotRaconteur::RobotRaconteurNode > rr_node=boost::shared_ptr< RobotRaconteur::RobotRaconteurNode >()) |
| Load an info file from a YAML node. | |
|
static |
Load an info file from a file.
Device information structures store metadata about devices that are provided to clients at runtime. The metadata is used to allow clients to determine the parameters and capabilities of the device. The exact type of the device info file depends on the device type. A number of device info structures are supported; see the documentation and examples.
The device info file is loaded from a file. The file is parsed as YAML. The YAML must be a valid representation of the device info structure.
The loader will "lock" the device identifier on the filesystem. It will automatically generate a UUID for the device name that will be persisted to the filesystem. This allows the device to be uniquely identified. Keep the contents of identifiers_lock in scope for the lifetime of the device.
| T | The type of the device info structure |
| file_name | The file name |
| identifier_locks | The vector to store the identifier locks |
| category | The category of the device. Should be "device" for most cases |
| node | The Robot Raconteur node |
|
static |
Load an info file from a YAML node.
Device information structures store metadata about devices that are provided to clients at runtime. The metadata is used to allow clients to determine the parameters and capabilities of the device. The exact type of the device info file depends on the device type. A number of device info structures are supported; see the documentation and examples.
The device info file is loaded from a YAML node. The YAML must be a valid representation of the device info structure.
The loader will "lock" the device identifier on the filesystem. It will automatically generate a UUID for the device name that will be persisted to the filesystem. This allows the device to be uniquely identified. Keep the contents of identifiers_lock in scope for the lifetime of the device.
| T | The type of the device info structure |
| node | The YAML node |
| identifier_locks | The vector to store the identifier locks |
| category | The category of the device. Should be "device" for most cases |
| rr_node | The Robot Raconteur node |
|
static |
Load an info file from a string.
Device information structures store metadata about devices that are provided to clients at runtime. The metadata is used to allow clients to determine the parameters and capabilities of the device. The exact type of the device info file depends on the device type. A number of device info structures are supported; see the documentation and examples.
The device info file is loaded from a string. The string is parsed as YAML. The YAML must be a valid representation of the device info structure.
The loader will "lock" the device identifier on the filesystem. It will automatically generate a UUID for the device name that will be persisted to the filesystem. This allows the device to be uniquely identified. Keep the contents of identifiers_lock in scope for the lifetime of the device.
| T | The type of the device info structure |
| file_text | The YAML text |
| identifier_locks | Vector to store the identifier locks |
| category | The category of the device. Should be "device" for most cases |
| node | The Robot Raconteur node |