OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ManipulatorBase.h
Go to the documentation of this file.
1#pragma once
2
3#include "OTCore/CoreTypes.h"
4
5#include <string>
6#include <list>
7
8namespace ot { class Property; };
9
11{
12public:
13 ManipulatorBase() : messageReplyTo(ot::invalidServiceID) {};
14 virtual ~ManipulatorBase() {};
15
16 virtual void cancelOperation(void) = 0;
17 virtual void performOperation(void) = 0;
18
19 virtual bool propertyGridValueChanged(const ot::Property* _property) { return false; }
20
21 void setReplyTo(ot::serviceID_t replyTo) { messageReplyTo = replyTo; }
22 void setAction(const std::string &selectionAction) { messageSelectionAction = selectionAction; }
23 void setOptionNames(const std::list<std::string> &optionNames) { messageOptionNames = optionNames; }
24 void setOptionValues(const std::list<std::string> &optionValues) { messageOptionValues = optionValues; }
25
26protected:
29 std::list<std::string> messageOptionNames;
30 std::list<std::string> messageOptionValues;
31};
32
Definition ManipulatorBase.h:11
ManipulatorBase()
Definition ManipulatorBase.h:13
void setOptionNames(const std::list< std::string > &optionNames)
Definition ManipulatorBase.h:23
virtual bool propertyGridValueChanged(const ot::Property *_property)
Definition ManipulatorBase.h:19
virtual ~ManipulatorBase()
Definition ManipulatorBase.h:14
std::string messageSelectionAction
Definition ManipulatorBase.h:28
virtual void performOperation(void)=0
void setOptionValues(const std::list< std::string > &optionValues)
Definition ManipulatorBase.h:24
void setAction(const std::string &selectionAction)
Definition ManipulatorBase.h:22
std::list< std::string > messageOptionValues
Definition ManipulatorBase.h:30
std::list< std::string > messageOptionNames
Definition ManipulatorBase.h:29
ot::serviceID_t messageReplyTo
Definition ManipulatorBase.h:27
void setReplyTo(ot::serviceID_t replyTo)
Definition ManipulatorBase.h:21
virtual void cancelOperation(void)=0
The Property class is used as a base class for all Properties that can be displayed and modified in t...
Definition Property.h:21
Definition Connector.h:8
unsigned short serviceID_t
ID type used to identify a service (16 bit unsigned integer).
Definition CoreTypes.h:14