forb
Classes | Public Member Functions | List of all members
forb::remote_registry Class Reference

Emulates a complete registry of all active remote objects that use this framework. More...

#include <remote_registry.hpp>

Classes

struct  remote_obj_entry
 The type that will store all information about a remote object that will be parsed from the JSON file. More...
 

Public Member Functions

 remote_registry (std::string conf_file_name)
 Constructs a new registry.
 
 ~remote_registry () noexcept
 Destructor.
 
 remote_registry (const remote_registry &other)
 This class does supports copy construction.
 
remote_registryoperator= (const remote_registry &other)
 This class does supports copy assignment.
 
 remote_registry (remote_registry &&other) noexcept
 This class does supports move construction.
 
remote_registryoperator= (remote_registry &&other) noexcept
 This class does supports move assignment.
 
remote_var get (const std::string &obj_name) const
 Returns a reference to the object identified by the obj_name argument, a NIL pointer otherwise.
 
remote_var get (const std::string &obj_name, base_stub::buffer_size_t buffer_size)
 Returns a reference to the object identified by the obj_name argument, a NIL pointer otherwise. More...
 
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. More...
 

Detailed Description

Emulates a complete registry of all active remote objects that use this framework.

The list of all known objects is obtained by parsing a JSON file, whose name is given as input to the constructor.

Member Function Documentation

§ get()

remote_var forb::remote_registry::get ( const std::string &  obj_name,
base_stub::buffer_size_t  buffer_size 
)
inline

Returns a reference to the object identified by the obj_name argument, a NIL pointer otherwise.

The buffer_size argument can be used to force the size of the buffer that will be used in case a shared memory area will be allocated to exchange data between components.

§ get_force_socket()

remote_var forb::remote_registry::get_force_socket ( const std::string &  obj_name) const
inline

Returns a reference to the object identified by the obj_name argument, a NIL pointer otherwise.

This method is the same as get, but forces the new handle to use of sockets for data exchange even when the two hosts are on the same machine.


The documentation for this class was generated from the following files: