Robot Raconteur Companion C++ Library
Loading...
Searching...
No Matches
LocalIdentifiersManager.h
Go to the documentation of this file.
1
23
24#include "com__robotraconteur__identifier.h"
25
26#include <RobotRaconteurCompanion/Util/UtilMacros.h>
27
28#pragma once
29
30namespace RobotRaconteur
31{
32namespace Companion
33{
34namespace Util
35{
36class ROBOTRACONTEUR_COMPANION_UTIL_API LocalIdentifierLock
37{
38 public:
39 LocalIdentifierLock(const com::robotraconteur::identifier::IdentifierPtr& id,
40 boost::shared_ptr<RobotRaconteur::NodeDirectoriesFD> fd);
41
42 com::robotraconteur::identifier::IdentifierPtr GetIdentifier();
43
44 protected:
45 com::robotraconteur::identifier::IdentifierPtr id;
46 boost::shared_ptr<RobotRaconteur::NodeDirectoriesFD> fd;
47};
48
49using LocalIdentifierLockPtr = boost::shared_ptr<LocalIdentifierLock>;
50
67ROBOTRACONTEUR_COMPANION_UTIL_API LocalIdentifierLockPtr
68GetIdentifierForNameAndLock(const std::string& category, const std::string& name,
69 boost::shared_ptr<RobotRaconteur::RobotRaconteurNode> node =
70 boost::shared_ptr<RobotRaconteur::RobotRaconteurNode>());
71
72} // namespace Util
73} // namespace Companion
74} // namespace RobotRaconteur
LocalIdentifierLockPtr GetIdentifierForNameAndLock(const std::string &category, const std::string &name, boost::shared_ptr< RobotRaconteur::RobotRaconteurNode > node=boost::shared_ptr< RobotRaconteur::RobotRaconteurNode >())
Get the Identifier For Name And Lock object.