Leosac
0.8.0
Open Source Access Control
|
This class is part of Leosac::Kernel, but it only exposes thread-safe functionalities that may be used by every modules. More...
#include <CoreUtils.hpp>
Public Member Functions | |
CoreUtils () | |
CoreUtils (Kernel *kptr, SchedulerPtr sched, ConfigCheckerPtr cfgcheck, bool strict_mode) | |
CoreUtils (const CoreUtils &)=delete | |
CoreUtils (CoreUtils &&)=delete | |
CoreUtils & | operator= (const CoreUtils &)=delete |
CoreUtils & | operator= (CoreUtils &&)=delete |
virtual | ~CoreUtils () |
zmqpp::context & | zmqpp_context () |
Scheduler & | scheduler () |
ConfigChecker & | config_checker () |
Kernel & | kernel () |
DBPtr | database () |
ServiceRegistry & | service_registry () |
CoreAPI | core_api () |
Instantiate a new, ready to use, CoreAPI object. More... | |
bool | is_strict () const |
Are we running in strict mode ? More... | |
Private Attributes | |
Kernel * | kptr_ |
SchedulerPtr | scheduler_ |
ConfigCheckerPtr | config_checker_ |
bool | strict_mode_ |
Friends | |
class | Kernel |
Gives the Kernel class full control. More... | |
This class is part of Leosac::Kernel, but it only exposes thread-safe functionalities that may be used by every modules.
It currently exposes the scheduler and the configuration checker object along with some command line parameter value and the zeroMQ context object.
A pointer to this object is passed to modules when they are created.
Definition at line 43 of file CoreUtils.hpp.
Leosac::CoreUtils::CoreUtils | ( | ) |
Definition at line 34 of file CoreUtils.cpp.
Leosac::CoreUtils::CoreUtils | ( | Leosac::Kernel * | kptr, |
Leosac::SchedulerPtr | sched, | ||
Leosac::ConfigCheckerPtr | cfgcheck, | ||
bool | strict_mode | ||
) |
Definition at line 25 of file CoreUtils.cpp.
|
delete |
|
delete |
|
inlinevirtual |
Definition at line 54 of file CoreUtils.hpp.
Leosac::ConfigChecker & Leosac::CoreUtils::config_checker | ( | ) |
Definition at line 46 of file CoreUtils.cpp.
Leosac::CoreAPI Leosac::CoreUtils::core_api | ( | ) |
Instantiate a new, ready to use, CoreAPI object.
Definition at line 68 of file CoreUtils.cpp.
Leosac::DBPtr Leosac::CoreUtils::database | ( | ) |
Definition at line 52 of file CoreUtils.cpp.
bool Leosac::CoreUtils::is_strict | ( | ) | const |
Are we running in strict mode ?
Definition at line 57 of file CoreUtils.cpp.
Leosac::Kernel & Leosac::CoreUtils::kernel | ( | ) |
Definition at line 62 of file CoreUtils.cpp.
Leosac::Scheduler & Leosac::CoreUtils::scheduler | ( | ) |
Definition at line 40 of file CoreUtils.cpp.
Leosac::ServiceRegistry & Leosac::CoreUtils::service_registry | ( | ) |
Definition at line 78 of file CoreUtils.cpp.
zmqpp::context & Leosac::CoreUtils::zmqpp_context | ( | ) |
Definition at line 73 of file CoreUtils.cpp.
|
friend |
Gives the Kernel
class full control.
Definition at line 84 of file CoreUtils.hpp.
|
private |
Definition at line 78 of file CoreUtils.hpp.
|
private |
Definition at line 76 of file CoreUtils.hpp.
|
private |
Definition at line 77 of file CoreUtils.hpp.
|
private |
Definition at line 79 of file CoreUtils.hpp.