OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Connector.h
Go to the documentation of this file.
1#pragma once
2#pragma warning(disable:4251)
3
4#include <string>
5#include "SerializeWithBSON.h"
6
7namespace ot
8{
9 enum ConnectorType {In = 0, Out = 1, InOptional = 2, UNKNOWN = -1};
10
11 class __declspec(dllexport) Connector : public SerializeWithBSON
12 {
13 public:
14 Connector();
15 ~Connector()
16 {
17
18 }
19 Connector(ConnectorType type, const std::string& connectorName, const std::string& connectorTitle);
20 bool operator==(const Connector& other) { return _connectorName == other._connectorName; }
21
22 const ConnectorType getConnectorType() const { return _connectorType; }
23 const std::string& getConnectorName() const { return _connectorName; }
24 const std::string& getConnectorTitle() const { return _connectorTitle; }
25
26 virtual bsoncxx::builder::basic::document SerializeBSON() const override;
27 virtual void DeserializeBSON(bsoncxx::v_noabi::types::b_document& storage) override;
28
29 private:
30 ConnectorType _connectorType;
31 std::string _connectorName;
32 std::string _connectorTitle;
33
34 };
35}
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
Definition Connector.h:8
ConnectorType
Definition Connector.h:9
@ InOptional
Definition Connector.h:9
@ Out
Definition Connector.h:9
@ In
Definition Connector.h:9
@ UNKNOWN
Definition Connector.h:9