31 #ifndef GLOBALSERVICEMESSAGES_H_ 32 #define GLOBALSERVICEMESSAGES_H_ 34 #include "../Variable.h" 35 #include "../Sockets/RpcClientInfo.h" 36 #include "../Encoding/RpcDecoder.h" 37 #include "../Encoding/RpcEncoder.h" 53 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);
54 void unset(int32_t familyId, int32_t messageId, std::string messageSubId, std::string message);
56 std::shared_ptr<Variable>
get(
PRpcClientInfo clientInfo,
const std::string &language);
69 std::unordered_map<FamilyId, std::unordered_map<MessageId, std::unordered_map<MessageSubId, std::unordered_map<MessageType, PServiceMessage>>>>
_serviceMessages;
This is the base library main class.
Definition: BaseLib.h:95
void load()
Definition: GlobalServiceMessages.cpp:52
BaseLib::SharedObjects * _bl
Definition: GlobalServiceMessages.h:63
std::unique_ptr< Rpc::RpcDecoder > _rpcDecoder
Definition: GlobalServiceMessages.h:65
Definition: BaseLib.cpp:34
void unset(int32_t familyId, int32_t messageId, std::string messageSubId, std::string message)
Definition: GlobalServiceMessages.cpp:127
std::shared_ptr< RpcClientInfo > PRpcClientInfo
Definition: ScriptInfo.h:47
std::string MessageType
Definition: GlobalServiceMessages.h:61
PVariable value
Definition: UiElements.h:217
virtual ~GlobalServiceMessages()
Definition: GlobalServiceMessages.cpp:42
std::shared_ptr< Variable > PVariable
Definition: PhysicalInterfaceSettings.h:41
int32_t MessageId
Definition: GlobalServiceMessages.h:59
std::string MessageSubId
Definition: GlobalServiceMessages.h:60
std::mutex _serviceMessagesMutex
Definition: GlobalServiceMessages.h:68
int32_t familyId
Definition: Licensing.h:380
ServiceMessagePriority
Definition: ServiceMessage.h:45
void init(BaseLib::SharedObjects *baseLib)
Definition: GlobalServiceMessages.cpp:46
int32_t FamilyId
Definition: GlobalServiceMessages.h:58
std::unordered_map< FamilyId, std::unordered_map< MessageId, std::unordered_map< MessageSubId, std::unordered_map< MessageType, PServiceMessage > > > > _serviceMessages
Definition: GlobalServiceMessages.h:69
std::unique_ptr< Rpc::RpcEncoder > _rpcEncoder
Definition: GlobalServiceMessages.h:66
Definition: GlobalServiceMessages.h:45
GlobalServiceMessages()
Definition: GlobalServiceMessages.cpp:39