|
Robot Raconteur Companion C++ Library
|
Go to the source code of this file.
Functions | |
| bool | RobotRaconteur::Companion::Util::IsIdentifierAnyUuid (const com::robotraconteur::identifier::IdentifierPtr &identifier) |
| Check if an identifier is "any" (UUID is all zeros). | |
| bool | RobotRaconteur::Companion::Util::IsIdentifierAnyName (const com::robotraconteur::identifier::IdentifierPtr &identifier) |
| Check if an identifier is "any" name (Name is empty). | |
| bool | RobotRaconteur::Companion::Util::IsIdentifierAny (const com::robotraconteur::identifier::IdentifierPtr &identifier) |
| Check if an identifier is "any" (UUID is all zeros and name is empty). | |
| bool | RobotRaconteur::Companion::Util::IsIdentifierMatch (const com::robotraconteur::identifier::IdentifierPtr &expected, const com::robotraconteur::identifier::IdentifierPtr &test) |
| Check if two identifiers match. | |
| com::robotraconteur::identifier::IdentifierPtr | RobotRaconteur::Companion::Util::CreateIdentifier (const std::string &name, const std::string &uuid) |
| Create an identifier from a name and UUID. | |
| com::robotraconteur::identifier::IdentifierPtr | RobotRaconteur::Companion::Util::CreateIdentifier (const std::string &name, const boost::uuids::uuid &boost_uuid) |
| Create an identifier from a name and UUID. | |
| com::robotraconteur::identifier::IdentifierPtr | RobotRaconteur::Companion::Util::CreateIdentifierFromName (const std::string &name) |
| Create a Identifier From Name object. | |
| std::string | RobotRaconteur::Companion::Util::IdentifierToString (const com::robotraconteur::identifier::IdentifierPtr &id) |
| Convert an identifier to a string. | |
| com::robotraconteur::identifier::IdentifierPtr | RobotRaconteur::Companion::Util::StringToIdentifier (const std::string &string_id) |
| Convert a string to an identifier. | |
| com::robotraconteur::identifier::IdentifierPtr RobotRaconteur::Companion::Util::CreateIdentifier | ( | const std::string & | name, |
| const boost::uuids::uuid & | boost_uuid ) |
Create an identifier from a name and UUID.
| name | The name |
| boost_uuid | The UUID |
| com::robotraconteur::identifier::IdentifierPtr RobotRaconteur::Companion::Util::CreateIdentifier | ( | const std::string & | name, |
| const std::string & | uuid ) |
Create an identifier from a name and UUID.
| name | The name |
| uuid | The UUID |
| com::robotraconteur::identifier::IdentifierPtr RobotRaconteur::Companion::Util::CreateIdentifierFromName | ( | const std::string & | name | ) |
Create a Identifier From Name object.
The UUID will be set to all zeros
| name | The name |
| std::string RobotRaconteur::Companion::Util::IdentifierToString | ( | const com::robotraconteur::identifier::IdentifierPtr & | id | ) |
Convert an identifier to a string.
The string format is "name|uuid". If the name is empty, it is omitted. If the UUID is all zeros, it is omitted.
| id | The identifier to convert |
| bool RobotRaconteur::Companion::Util::IsIdentifierAny | ( | const com::robotraconteur::identifier::IdentifierPtr & | identifier | ) |
Check if an identifier is "any" (UUID is all zeros and name is empty).
| identifier | The identifier to check |
| bool RobotRaconteur::Companion::Util::IsIdentifierAnyName | ( | const com::robotraconteur::identifier::IdentifierPtr & | identifier | ) |
Check if an identifier is "any" name (Name is empty).
| identifier | The identifier to check |
| bool RobotRaconteur::Companion::Util::IsIdentifierAnyUuid | ( | const com::robotraconteur::identifier::IdentifierPtr & | identifier | ) |
Check if an identifier is "any" (UUID is all zeros).
| identifier | The identifier to check |
| bool RobotRaconteur::Companion::Util::IsIdentifierMatch | ( | const com::robotraconteur::identifier::IdentifierPtr & | expected, |
| const com::robotraconteur::identifier::IdentifierPtr & | test ) |
Check if two identifiers match.
Identifiers have a complex matching rules:
| expected | The expected identifier |
| test | The identifier to test |
| com::robotraconteur::identifier::IdentifierPtr RobotRaconteur::Companion::Util::StringToIdentifier | ( | const std::string & | string_id | ) |
Convert a string to an identifier.
The string format is "name|uuid". If the name is empty, it is omitted. If the UUID is all zeros, it is omitted.
| string_id | The string representation of the identifier |