OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PortDataBuffer.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <list>
4#include <optional>
5#include <map>
6
7#include "OTCore/Variable.h"
9#include "PortData.h"
10#include "CPythonObject.h"
11
13public:
14 static PortDataBuffer& instance(void);
15
16 void addNewPortData(const std::string& _portName, const ot::GenericDataStructList& _data);
17 void overridePortData(const std::string& _portName, const ot::GenericDataStructList& _data);
18 void clearPortData();
19 PyObject* getPortData(const std::string& _portName);
20 void addModifiedPortData(ot::ReturnValues& _returnValues);
21
22private:
23 std::map<std::string, PortData> m_portData;
24
25 PortDataBuffer() {};
26};
Definition PortDataBuffer.h:12
static PortDataBuffer & instance(void)
Definition PortDataBuffer.cpp:5
void addNewPortData(const std::string &_portName, const ot::GenericDataStructList &_data)
Definition PortDataBuffer.cpp:10
void addModifiedPortData(ot::ReturnValues &_returnValues)
Definition PortDataBuffer.cpp:48
PyObject * getPortData(const std::string &_portName)
Definition PortDataBuffer.cpp:32
void clearPortData()
Definition PortDataBuffer.cpp:27
void overridePortData(const std::string &_portName, const ot::GenericDataStructList &_data)
Definition PortDataBuffer.cpp:16
Definition ReturnValues.h:11
std::list< ot::GenericDataStruct * > GenericDataStructList
Definition GenericDataStruct.h:27