5 #ifndef LIBFORB_REMOTE_REGISTRY_HPP 6 #define LIBFORB_REMOTE_REGISTRY_HPP 10 #include <forb/base_stub.hpp> 26 using obj_map_t = std::map<std::string, remote_obj_entry>;
31 obj_map_t remote_objects;
59 return get(obj_name,
false, 0);
66 return get(obj_name,
false, buffer_size);
73 return get(obj_name,
true, 0);
86 #endif //LIBFORB_REMOTE_REGISTRY_HPP ~remote_registry() noexcept
Destructor.
This function implements a memcpy abstract that is valid also for volatile data.
Definition: base_skeleton.hpp:15
Emulates a complete registry of all active remote objects that use this framework.
Definition: remote_registry.hpp:17
remote_var get_force_socket(const std::string &obj_name) const
Returns a reference to the object identified by the obj_name argument, a NIL pointer otherwise...
Definition: remote_registry.hpp:72
The type that will store all information about a remote object that will be parsed from the JSON file...
Definition: remote_registry.cpp:17
remote_registry & operator=(const remote_registry &other)
This class does supports copy assignment.
remote_registry(std::string conf_file_name)
Constructs a new registry.
Definition: remote_registry.cpp:48
forb::streams::shared_memory::size_t buffer_size_t
The type of the buffer size.
Definition: base_stub.hpp:43
std::unique_ptr< base_stub > remote_var
Unique pointer to a base_class object (or a derived class).
Definition: base_stub.hpp:30