ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <Component.hpp>
Public Member Functions | |
virtual | ~Component () |
const char * | getClassName () const |
virtual std::string | asString (void) const |
virtual anna::xml::Node * | asXML (anna::xml::Node *parent) const |
Public Member Functions inherited from anna::Mutex | |
Mutex (const Mode::_v mode=Mode::Recursive) | |
virtual | ~Mutex () |
virtual void | lock () noexcept(false) |
virtual void | unlock () |
bool | trylock () noexcept(false) |
operator const pthread_mutex_t * () const | |
Protected Member Functions | |
Component (const char *className) | |
Component (const Component &other) | |
Protected Member Functions inherited from anna::Safe | |
Safe () | |
Protected Attributes | |
const std::string | a_className |
Component parent class
It must be only one instance for each component, but we can't inherit them from anna::Singleton because the programmer must have the posibility to re-implement the component.
If component 'Class' hasn't been registered, anna::functions::component will launch an exception.
|
virtual |
Destructor.
Reimplemented in anna::app::Component.
|
explicitprotected |
Contructor.
className | Logical name for tha class. |
|
protected |
|
virtual |
Class string representation
Reimplemented in anna::comm::Communicator, anna::diameter::comm::Engine, anna::diameter::codec::EngineImpl, anna::dbms::Database, anna::timex::Engine, and anna::app::Component.
|
virtual |
Class XML representation.
parent | XML node over which we will put instance information. |
Reimplemented in anna::comm::Communicator, anna::diameter::comm::Engine, anna::diameter::codec::EngineImpl, anna::ldap::Engine, anna::dbms::Database, anna::timex::Engine, and anna::app::Component.
|
inline |
Gets the class name configured at constructor.
|
protected |