SObjectizer 5.8
Loading...
Searching...
No Matches
so_layer.cpp
Go to the documentation of this file.
1/*
2 SObjectizer 5.
3*/
4
5#include <so_5/so_layer.hpp>
6
7#include <so_5/exception.hpp>
8
9namespace so_5
10{
11
12void
14{
15}
16
17void
19{
20}
21
22void
24{
25}
26
29{
30 if( nullptr == m_env )
31 {
33 "so_environment isn't bound to this layer",
35 }
36
37 return *m_env;
38}
39
40void
42{
43 m_env = env;
44}
45
46} /* namespace so_5 */
SObjectizer Environment.
The base class for all SObjectizer exceptions.
Definition exception.hpp:34
exception_t(const std::string &error_descr, int error_code)
Definition exception.hpp:36
An interface of the additional SObjectizer Environment layer.
Definition so_layer.hpp:31
environment_t * m_env
SObjectizer Environment to which layer is bound.
Definition so_layer.hpp:85
virtual void start()
Start hook.
Definition so_layer.cpp:13
virtual void shutdown()
Shutdown signal hook.
Definition so_layer.cpp:18
virtual void wait()
Waiting for the complete shutdown of a layer.
Definition so_layer.cpp:23
environment_t & so_environment() const
Access to the SObjectizer Environment.
Definition so_layer.cpp:28
void bind_to_environment(environment_t *env)
Bind layer to the SObjectizer Environment.
Definition so_layer.cpp:41
Private part of message limit implementation.
Definition agent.cpp:33
const int rc_layer_not_binded_to_so_env
The layer is not bound to the SObjectizer Environment.
Definition ret_code.hpp:152