9#include "basic_CoreTypes.hpp"
27 std::shared_ptr<const SmallBuffer>
data;
30 dataRecord(
Time recordTime, std::shared_ptr<const SmallBuffer> recordData):
35 unsigned int recordIteration,
36 std::shared_ptr<const SmallBuffer> recordData):
47 sourceInformation(std::string_view key_, std::string_view type_, std::string_view units_):
48 key(key_), type(type_), units(units_)
54 std::string_view key_,
55 std::string_view type_,
56 std::string_view units_):
id(handle),
key(key_), type(type_),
units(units_)
61 const std::string
key;
62 const std::string type;
87 std::vector<std::vector<dataRecord>> data_queues;
88 std::uint64_t queuedDataSizeBytes{0};
92 const std::vector<std::shared_ptr<const SmallBuffer>>&
getAllData()
const;
94 const std::shared_ptr<const SmallBuffer>&
getData(
int index)
const;
96 const std::shared_ptr<const SmallBuffer>&
getData(uint32_t* inputIndex)
const;
101 unsigned int iteration,
102 std::shared_ptr<const SmallBuffer> data);
126 std::string_view sourceName,
127 std::string_view stype,
128 std::string_view sunits);
140 const std::string& getInjectionType()
const;
141 const std::string& getInjectionUnits()
const;
144 const std::string& getTargets()
const;
146 void setProperty(int32_t option, int32_t value);
147 int32_t getProperty(int32_t option)
const;
150 bool updateData(dataRecord&& update,
int index);
151 mutable std::string inputUnits;
152 mutable std::string inputType;
153 mutable std::string sourceTargets;
156bool checkTypeMatch(std::string_view type1, std::string_view type2,
bool strict_match);
158bool checkUnitMatch(
const std::string& unit1,
const std::string& unit2,
bool strict_match);
Definition GlobalFederateId.hpp:75
Definition GlobalFederateId.hpp:147
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition AsyncFedCallInfo.hpp:14
constexpr Time timeZero
Definition helicsTime.hpp:31
TimeRepresentation< count_time< 9 > > Time
Definition helicsTime.hpp:27