OpcUaCanOpen
CANopen OPC-UA server
|
#include <LogItInstance.h>
Public Member Functions | |
ComponentAttributes & | registerLoggingComponent (const std::string &componentName, const Log::LOG_LEVEL &nonComponentLogLevel) |
bool | getComponentAttributes (const Log::LogComponentHandle &componentHandle, ComponentAttributes *&componentAttributes) |
bool | getComponentHandle (const std::string &componentName, Log::LogComponentHandle &componentHandle) |
std::map< Log::LogComponentHandle, std::string > | getLoggingComponentsList () const |
Static Public Member Functions | |
static bool | instanceExists () |
static SHARED_LIB_EXPORT_DEFN LogItInstance * | getInstance () |
static bool | setInstance (LogItInstance *remoteInstance) |
static LogItInstance * | createInstance () |
Public Attributes | |
bool | m_isLoggingInitialized |
LogSinks | m_logSinksInstance |
Log::LOG_LEVEL | m_nonComponentLogLevel |
Private Types | |
typedef std::vector< ComponentAttributes > | LoggingComponentsArray |
typedef std::unordered_map< std::string, Log::LogComponentHandle > | MapOfComponentNameToHandle |
typedef std::shared_ptr< MapOfComponentNameToHandle > | MapOfComponentNameToHandlePtr |
Private Member Functions | |
LogItInstance () | |
virtual | ~LogItInstance () |
Private Attributes | |
LoggingComponentsArray | m_components |
MapOfComponentNameToHandlePtr | m_componentNames |
std::mutex | m_componentsLock |
Static Private Attributes | |
static LogItInstance * | g_sLogItInstance |
Definition at line 34 of file LogItInstance.h.
|
private |
Definition at line 37 of file LogItInstance.h.
|
private |
Definition at line 38 of file LogItInstance.h.
|
private |
Definition at line 39 of file LogItInstance.h.
|
private |
Definition at line 34 of file LogItInstance.cpp.
|
privatevirtual |
Definition at line 40 of file LogItInstance.cpp.
|
static |
Definition at line 70 of file LogItInstance.cpp.
bool LogItInstance::getComponentAttributes | ( | const Log::LogComponentHandle & | componentHandle, |
ComponentAttributes *& | componentAttributes | ||
) |
Definition at line 125 of file LogItInstance.cpp.
bool LogItInstance::getComponentHandle | ( | const std::string & | componentName, |
Log::LogComponentHandle & | componentHandle | ||
) |
Definition at line 133 of file LogItInstance.cpp.
|
static |
Definition at line 48 of file LogItInstance.cpp.
map< Log::LogComponentHandle, string > LogItInstance::getLoggingComponentsList | ( | ) | const |
Definition at line 142 of file LogItInstance.cpp.
|
static |
Definition at line 43 of file LogItInstance.cpp.
ComponentAttributes & LogItInstance::registerLoggingComponent | ( | const std::string & | componentName, |
const Log::LOG_LEVEL & | nonComponentLogLevel | ||
) |
Definition at line 83 of file LogItInstance.cpp.
|
static |
Definition at line 53 of file LogItInstance.cpp.
|
staticprivate |
Definition at line 50 of file LogItInstance.h.
|
private |
Definition at line 65 of file LogItInstance.h.
|
private |
Definition at line 64 of file LogItInstance.h.
|
mutableprivate |
Definition at line 66 of file LogItInstance.h.
bool LogItInstance::m_isLoggingInitialized |
Definition at line 59 of file LogItInstance.h.
LogSinks LogItInstance::m_logSinksInstance |
Definition at line 60 of file LogItInstance.h.
Log::LOG_LEVEL LogItInstance::m_nonComponentLogLevel |
Definition at line 61 of file LogItInstance.h.