TwiceAsNice  2019-02-18
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Basda::WuT::Log Class Reference

#include <Log.h>

Collaboration diagram for Basda::WuT::Log:
Collaboration graph

Classes

struct  PropertyName
 

Public Member Functions

 Log (const std::string &name, const Nice::JointPtr &config)
 
void init ()
 
void onSettingOutputPort (int port, enum Basda::AnalogIODevice::PortState desiredState)
 
void onConnectionEstablishment ()
 

Protected Member Functions

void turnOffLoggingForSettingOutputPort (const bool &turnOffRequested)
 

Private Member Functions

bool isLogMessageDeactivatedForPort (int port)
 
std::string getOutputPortDescription (int port)
 
std::string buildLogMessageWhenSettingOutputPort (int port, Basda::AnalogIODevice::PortState desiredState)
 
void enableOutputPortLogging (const int port, const bool enabled)
 

Private Attributes

bool m_initialized
 
bool m_turnOffLogMessagesRequested
 
std::string m_name
 
Nice::JointPtr m_config
 
Nice::Mutex m_sync
 

Constructor & Destructor Documentation

◆ Log()

Basda::WuT::Log::Log ( const std::string &  name,
const Nice::JointPtr config 
)

Member Function Documentation

◆ buildLogMessageWhenSettingOutputPort()

std::string Basda::WuT::Log::buildLogMessageWhenSettingOutputPort ( int  port,
Basda::AnalogIODevice::PortState  desiredState 
)
private

◆ enableOutputPortLogging()

void Basda::WuT::Log::enableOutputPortLogging ( const int  port,
const bool  enabled 
)
private

◆ getOutputPortDescription()

std::string Basda::WuT::Log::getOutputPortDescription ( int  port)
private

◆ init()

void Basda::WuT::Log::init ( )

◆ isLogMessageDeactivatedForPort()

bool Basda::WuT::Log::isLogMessageDeactivatedForPort ( int  port)
private

◆ onConnectionEstablishment()

void Basda::WuT::Log::onConnectionEstablishment ( )

◆ onSettingOutputPort()

void Basda::WuT::Log::onSettingOutputPort ( int  port,
enum Basda::AnalogIODevice::PortState  desiredState 
)

◆ turnOffLoggingForSettingOutputPort()

void Basda::WuT::Log::turnOffLoggingForSettingOutputPort ( const bool turnOffRequested)
protected
Note
property bridge member function
thread-safe

Member Data Documentation

◆ m_config

Nice::JointPtr Basda::WuT::Log::m_config
private

◆ m_initialized

bool Basda::WuT::Log::m_initialized
private

◆ m_name

std::string Basda::WuT::Log::m_name
private

◆ m_sync

Nice::Mutex Basda::WuT::Log::m_sync
private

◆ m_turnOffLogMessagesRequested

bool Basda::WuT::Log::m_turnOffLogMessagesRequested
private

The documentation for this class was generated from the following files: