Robot Raconteur Companion C++ Library
Loading...
Searching...
No Matches
IdentifierUtil.h
Go to the documentation of this file.
1
23
24#include "com__robotraconteur__identifier.h"
25#include <boost/uuid/uuid.hpp>
26#include <boost/uuid/uuid_io.hpp>
27#include "UuidUtil.h"
28
29#pragma once
30
31namespace RobotRaconteur
32{
33namespace Companion
34{
35namespace Util
36{
37
45ROBOTRACONTEUR_COMPANION_UTIL_API bool IsIdentifierAnyUuid(
46 const com::robotraconteur::identifier::IdentifierPtr& identifier);
47
55ROBOTRACONTEUR_COMPANION_UTIL_API bool IsIdentifierAnyName(
56 const com::robotraconteur::identifier::IdentifierPtr& identifier);
57
65ROBOTRACONTEUR_COMPANION_UTIL_API bool IsIdentifierAny(
66 const com::robotraconteur::identifier::IdentifierPtr& identifier);
67
85ROBOTRACONTEUR_COMPANION_UTIL_API bool IsIdentifierMatch(const com::robotraconteur::identifier::IdentifierPtr& expected,
86 const com::robotraconteur::identifier::IdentifierPtr& test);
87
95ROBOTRACONTEUR_COMPANION_UTIL_API com::robotraconteur::identifier::IdentifierPtr CreateIdentifier(
96 const std::string& name, const std::string& uuid);
97
105ROBOTRACONTEUR_COMPANION_UTIL_API com::robotraconteur::identifier::IdentifierPtr CreateIdentifier(
106 const std::string& name, const boost::uuids::uuid& boost_uuid);
107
116ROBOTRACONTEUR_COMPANION_UTIL_API com::robotraconteur::identifier::IdentifierPtr CreateIdentifierFromName(
117 const std::string& name);
118
127ROBOTRACONTEUR_COMPANION_UTIL_API std::string IdentifierToString(
128 const com::robotraconteur::identifier::IdentifierPtr& id);
129
138ROBOTRACONTEUR_COMPANION_UTIL_API com::robotraconteur::identifier::IdentifierPtr StringToIdentifier(
139 const std::string& string_id);
140
141} // namespace Util
142} // namespace Companion
143} // namespace RobotRaconteur
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.