 |
helics
3.3.0
|
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):
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_):
58 key(key_), type(type_),
units(units_)
63 const std::string
key;
64 const std::string type;
89 std::vector<std::vector<dataRecord>> data_queues;
93 const std::vector<std::shared_ptr<const SmallBuffer>>&
getAllData()
const;
95 const std::shared_ptr<const SmallBuffer>&
getData(
int index)
const;
97 const std::shared_ptr<const SmallBuffer>&
getData(uint32_t* inputIndex)
const;
102 unsigned int iteration,
103 std::shared_ptr<const SmallBuffer> data);
127 std::string_view sourceName,
128 std::string_view stype,
129 std::string_view sunits);
137 const std::string& getInjectionType()
const;
138 const std::string& getInjectionUnits()
const;
141 const std::string& getTargets()
const;
143 void setProperty(int32_t option, int32_t value);
144 int32_t getProperty(int32_t option)
const;
147 bool updateData(
dataRecord&& update,
int index);
148 mutable std::string inputUnits;
149 mutable std::string inputType;
150 mutable std::string sourceTargets;
153 bool checkTypeMatch(std::string_view type1, std::string_view type2,
bool strict_match);
155 bool checkUnitMatch(
const std::string& unit1,
const std::string& unit2,
bool strict_match);
constexpr Time timeZero
Definition: helicsTime.hpp:31
base helics enumerations for C++ API's, a namespace wrapper for the definitions defined in helics_enu...
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27
@ CONNECTIONS
print summary+federate level connection information
Definition: logging.hpp:27
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
Definition: GlobalFederateId.hpp:144
bool isValidIndex(sizeType testSize, const SizedDataType &vec)
Definition: core-data.hpp:171