dtlmod::DTL
-
class DTL
A class that implements a Data Transport Layer abstraction.
Public Functions
-
std::shared_ptr<Stream> add_stream(const std::string &name)
Add a data stream to the Data Transport Layer.
-
inline const std::unordered_map<std::string, std::shared_ptr<Stream>> &get_all_streams() const
Retrieve all streams declared in the Data Transport by its name.
- Returns:
a map of handlers on Stream objects with their names as keys.
Public Static Functions
-
static std::shared_ptr<DTL> connect()
Connect an Actor to the Data Transport Layer.
- Returns:
A handler on the DTL object.
-
static void create()
Create the Data Transport Layer.
-
static void create(const std::string &filename)
Create the Data Transport Layer.
- Parameters:
filename – a JSON configuration file that provide stream parameters.
-
static void disconnect()
Disconnect an Actor to the Data Transport Layer.
-
std::shared_ptr<Stream> add_stream(const std::string &name)