9 #include "basic_CoreTypes.hpp"
13 #include <string_view>
26 std::shared_ptr<const SmallBuffer>
data;
29 dataRecord(
Time recordTime, std::shared_ptr<const SmallBuffer> recordData):
30 time(recordTime),
data(std::move(recordData))
34 unsigned int recordIteration,
35 std::shared_ptr<const SmallBuffer> recordData):
46 sourceInformation(std::string_view key_, std::string_view type_, std::string_view units_):
47 key(key_), type(type_), units(units_)
53 std::string_view key_,
54 std::string_view type_,
55 std::string_view units_):
id(handle),
key(key_), type(type_),
units(units_)
60 const std::string
key;
61 const std::string type;
86 std::vector<std::vector<dataRecord>> data_queues;
90 const std::vector<std::shared_ptr<const SmallBuffer>>&
getAllData()
const;
92 const std::shared_ptr<const SmallBuffer>&
getData(
int index)
const;
94 const std::shared_ptr<const SmallBuffer>&
getData(uint32_t* inputIndex)
const;
99 unsigned int iteration,
100 std::shared_ptr<const SmallBuffer> data);
124 std::string_view sourceName,
125 std::string_view stype,
126 std::string_view sunits);
136 const std::string& getInjectionType()
const;
137 const std::string& getInjectionUnits()
const;
140 const std::string& getTargets()
const;
142 void setProperty(int32_t option, int32_t value);
143 int32_t getProperty(int32_t option)
const;
146 bool updateData(
dataRecord&& update,
int index);
147 mutable std::string inputUnits;
148 mutable std::string inputType;
149 mutable std::string sourceTargets;
152 bool checkTypeMatch(std::string_view type1, std::string_view type2,
bool strict_match);
154 bool 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