OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ActionHandleConnectorBase.h
Go to the documentation of this file.
1
5// ###########################################################################################################################################################################################################################################################################################################################
6
7#pragma once
8
9// OpenTwin header
10#include "OTCore/JSON.h"
14
15// std header
16#include <list>
17#include <string>
18
19namespace ot {
20
25 public:
26 ActionHandleConnectorBase(const std::string& _actionName, ot::MessageType _messageFlags);
27 ActionHandleConnectorBase(const std::list<std::string>& _actionNames, ot::MessageType _messageFlags);
30
31 ActionHandleConnectorBase& operator = (const ActionHandleConnectorBase& _other);
32
33 bool mayDispatch(ot::MessageType _inboundMessageType) const;
34
35 virtual std::string forwardDispatch(JsonDocument& _document) = 0;
36
37 const std::list<std::string>& actionNames(void) const { return m_actionNames; }
38
39 protected:
40 std::list<std::string> m_actionNames;
42 };
43
44}
#define OT_COMMUNICATION_API_EXPORT
Definition CommunicationAPIExport.h:6
This file contains defines that may be used simplyfy class creation.
Base class for action handler connectors. A action handle connector has a set of actions.
Definition ActionHandleConnectorBase.h:24
std::list< std::string > m_actionNames
Definition ActionHandleConnectorBase.h:40
virtual std::string forwardDispatch(JsonDocument &_document)=0
const std::list< std::string > & actionNames(void) const
Definition ActionHandleConnectorBase.h:37
ot::MessageType m_messageFlags
Definition ActionHandleConnectorBase.h:41
JSON document.
Definition JSON.h:276
Definition Connector.h:8
MessageType
The message types describes how a message should be delivered.
Definition CommunicationTypes.h:10