libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::Systems::GlobalServiceMessages Class Reference

#include <GlobalServiceMessages.h>

Public Member Functions

 GlobalServiceMessages ()
 
virtual ~GlobalServiceMessages ()
 
void init (BaseLib::SharedObjects *baseLib)
 
void load ()
 
void set (int32_t familyId, const std::string &interface, int32_t messageId, const std::string &messageSubId, ServiceMessagePriority priority, int32_t timestamp, const std::string &message, const std::list< std::string > &variables, const PVariable &data=PVariable(), int64_t value=0)
 
void unset (int32_t familyId, int32_t messageId, std::string messageSubId, std::string message)
 
std::shared_ptr< Variableget (PRpcClientInfo clientInfo, const std::string &language)
 

Protected Types

typedef int32_t FamilyId
 
typedef int32_t MessageId
 
typedef std::string MessageSubId
 
typedef std::string MessageType
 

Protected Attributes

BaseLib::SharedObjects_bl = nullptr
 
std::unique_ptr< Rpc::RpcDecoder_rpcDecoder
 
std::unique_ptr< Rpc::RpcEncoder_rpcEncoder
 
std::mutex _serviceMessagesMutex
 
std::unordered_map< FamilyId, std::unordered_map< MessageId, std::unordered_map< MessageSubId, std::unordered_map< MessageType, PServiceMessage > > > > _serviceMessages
 

Member Typedef Documentation

§ FamilyId

§ MessageId

§ MessageSubId

§ MessageType

Constructor & Destructor Documentation

§ GlobalServiceMessages()

BaseLib::Systems::GlobalServiceMessages::GlobalServiceMessages ( )

§ ~GlobalServiceMessages()

BaseLib::Systems::GlobalServiceMessages::~GlobalServiceMessages ( )
virtual

Member Function Documentation

§ get()

PVariable BaseLib::Systems::GlobalServiceMessages::get ( PRpcClientInfo  clientInfo,
const std::string &  language 
)

§ init()

void BaseLib::Systems::GlobalServiceMessages::init ( BaseLib::SharedObjects baseLib)

§ load()

void BaseLib::Systems::GlobalServiceMessages::load ( )

§ set()

void BaseLib::Systems::GlobalServiceMessages::set ( int32_t  familyId,
const std::string &  interface,
int32_t  messageId,
const std::string &  messageSubId,
ServiceMessagePriority  priority,
int32_t  timestamp,
const std::string &  message,
const std::list< std::string > &  variables,
const PVariable data = PVariable(),
int64_t  value = 0 
)

§ unset()

void BaseLib::Systems::GlobalServiceMessages::unset ( int32_t  familyId,
int32_t  messageId,
std::string  messageSubId,
std::string  message 
)

Member Data Documentation

§ _bl

BaseLib::SharedObjects* BaseLib::Systems::GlobalServiceMessages::_bl = nullptr
protected

§ _rpcDecoder

std::unique_ptr<Rpc::RpcDecoder> BaseLib::Systems::GlobalServiceMessages::_rpcDecoder
protected

§ _rpcEncoder

std::unique_ptr<Rpc::RpcEncoder> BaseLib::Systems::GlobalServiceMessages::_rpcEncoder
protected

§ _serviceMessages

std::unordered_map<FamilyId, std::unordered_map<MessageId, std::unordered_map<MessageSubId, std::unordered_map<MessageType, PServiceMessage> > > > BaseLib::Systems::GlobalServiceMessages::_serviceMessages
protected

§ _serviceMessagesMutex

std::mutex BaseLib::Systems::GlobalServiceMessages::_serviceMessagesMutex
protected

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