24#include "com__robotraconteur__identifier.h"
25#include <boost/uuid/uuid.hpp>
26#include <boost/uuid/uuid_io.hpp>
31namespace RobotRaconteur
46 const com::robotraconteur::identifier::IdentifierPtr& identifier);
56 const com::robotraconteur::identifier::IdentifierPtr& identifier);
66 const com::robotraconteur::identifier::IdentifierPtr& identifier);
85ROBOTRACONTEUR_COMPANION_UTIL_API
bool IsIdentifierMatch(
const com::robotraconteur::identifier::IdentifierPtr& expected,
86 const com::robotraconteur::identifier::IdentifierPtr& test);
95ROBOTRACONTEUR_COMPANION_UTIL_API com::robotraconteur::identifier::IdentifierPtr
CreateIdentifier(
96 const std::string& name,
const std::string& uuid);
105ROBOTRACONTEUR_COMPANION_UTIL_API com::robotraconteur::identifier::IdentifierPtr
CreateIdentifier(
106 const std::string& name,
const boost::uuids::uuid& boost_uuid);
117 const std::string& name);
128 const com::robotraconteur::identifier::IdentifierPtr&
id);
139 const std::string& string_id);
com::robotraconteur::identifier::IdentifierPtr CreateIdentifierFromName(const std::string &name)
Create a Identifier From Name object.
bool IsIdentifierAnyName(const com::robotraconteur::identifier::IdentifierPtr &identifier)
Check if an identifier is "any" name (Name is empty).
std::string IdentifierToString(const com::robotraconteur::identifier::IdentifierPtr &id)
Convert an identifier to a string.
bool IsIdentifierMatch(const com::robotraconteur::identifier::IdentifierPtr &expected, const com::robotraconteur::identifier::IdentifierPtr &test)
Check if two identifiers match.
com::robotraconteur::identifier::IdentifierPtr StringToIdentifier(const std::string &string_id)
Convert a string to an identifier.
bool IsIdentifierAny(const com::robotraconteur::identifier::IdentifierPtr &identifier)
Check if an identifier is "any" (UUID is all zeros and name is empty).
bool IsIdentifierAnyUuid(const com::robotraconteur::identifier::IdentifierPtr &identifier)
Check if an identifier is "any" (UUID is all zeros).
com::robotraconteur::identifier::IdentifierPtr CreateIdentifier(const std::string &name, const std::string &uuid)
Create an identifier from a name and UUID.