| helics 3.6.1

Endpoint.hpp
1 /*
2 Copyright (c) 2017-2025,
3 Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4 Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5 SPDX-License-Identifier: BSD-3-Clause
6 */
7 #ifndef HELICS_CPP98_ENDPOINT_HPP_
8 #define HELICS_CPP98_ENDPOINT_HPP_
9 #pragma once
10
11 #include "DataBuffer.hpp"
12 #include "helics/helics.h"
13 #include "helicsExceptions.hpp"
14
15 #include <string>
16 #include <vector>
17
18 namespace helicscpp {
19 class Endpoint;
20 class Federate;
21
22 class Message {
23 public:
25 Message() HELICS_NOTHROW: mo(HELICS_NULL_POINTER) {}
27 explicit Message(const Federate& fed);
29 explicit Message(const Endpoint& ept);
31 explicit Message(HelicsMessage hmo) HELICS_NOTHROW: mo(hmo) {}
32
34 Message(const Message& mess) HELICS_NOTHROW:
35 mo(helicsMessageClone(mess.mo, HELICS_IGNORE_ERROR))
36 {
37 }
39 Message& operator=(const Message& mess) HELICS_NOTHROW
40 {
41 if (mo != HELICS_NULL_POINTER) {
42 helicsMessageFree(mo);
43 }
44 mo = helicsMessageClone(mess.mo, HELICS_IGNORE_ERROR);
45 return *this;
46 }
47 #ifdef HELICS_HAS_RVALUE_REFS
49 Message(Message&& mess) HELICS_NOTHROW: mo(mess.release()) {}
51 Message& operator=(Message&& mess) HELICS_NOTHROW
52 {
53 mo = mess.release();
54 return *this;
55 }
56 #endif
58 ~Message()
59 {
60 if (mo != HELICS_NULL_POINTER) {
61 helicsMessageFree(mo);
62 }
63 }
65 operator HelicsMessage() const { return mo; }
67 bool isValid() const { return (helicsMessageIsValid(mo) == HELICS_TRUE); }
69 const char* source() const { return helicsMessageGetSource(mo); }
71 Message& source(const std::string& src)
72 {
73 helicsMessageSetSource(mo, src.c_str(), hThrowOnError());
74 return *this;
75 }
77 Message& source(const char* src)
78 {
79 helicsMessageSetSource(mo, src, hThrowOnError());
80 return *this;
81 }
83 const char* destination() const { return helicsMessageGetDestination(mo); }
85 Message& destination(const std::string& dest)
86 {
87 helicsMessageSetDestination(mo, dest.c_str(), hThrowOnError());
88 return *this;
89 }
91 Message& destination(const char* dest)
92 {
93 helicsMessageSetDestination(mo, dest, hThrowOnError());
94 return *this;
95 }
98 const char* originalSource() const { return helicsMessageGetOriginalSource(mo); }
100 Message& originalSource(const std::string& osrc)
101 {
102 helicsMessageSetOriginalSource(mo, osrc.c_str(), hThrowOnError());
103 return *this;
104 }
106 const char* originalDestination() const { return helicsMessageGetOriginalDestination(mo); }
108 Message& originalDestination(const std::string& odest)
109 {
110 helicsMessageSetOriginalDestination(mo, odest.c_str(), hThrowOnError());
111 return *this;
112 }
114 int size() const { return helicsMessageGetByteCount(mo); }
116 void resize(int newSize) { helicsMessageResize(mo, newSize, hThrowOnError()); }
119 void reserve(int newSize) { helicsMessageReserve(mo, newSize, hThrowOnError()); }
121 void* data() const { return helicsMessageGetBytesPointer(mo); }
123 Message& data(const void* ptr, int size)
124 {
125 helicsMessageSetData(mo, ptr, size, hThrowOnError());
126 return *this;
127 }
129 Message& data(const std::string& str)
130 {
131 helicsMessageSetString(mo, str.c_str(), hThrowOnError());
132 return *this;
133 }
135 Message& data(const char* str)
136 {
137 helicsMessageSetString(mo, str, hThrowOnError());
138 return *this;
139 }
141 Message& data(DataBuffer buffer)
142 {
143 helicsMessageSetDataBuffer(mo, buffer.getHelicsDataBuffer(), hThrowOnError());
144 return *this;
145 }
147 Message& append(const void* ptr, int size)
148 {
149 helicsMessageAppendData(mo, ptr, size, hThrowOnError());
150 return *this;
151 }
153 Message& append(const std::string& str)
154 {
155 helicsMessageAppendData(mo, str.c_str(), static_cast<int>(str.size()), hThrowOnError());
156 return *this;
157 }
159 const char* c_str() const { return helicsMessageGetString(mo); }
161 HelicsTime time() const { return helicsMessageGetTime(mo); }
163 Message& time(HelicsTime val)
164 {
165 helicsMessageSetTime(mo, val, hThrowOnError());
166 return *this;
167 }
169 Message& setFlag(int flag, bool val)
170 {
171 helicsMessageSetFlagOption(mo, flag, val ? HELICS_TRUE : HELICS_FALSE, hThrowOnError());
172 return *this;
173 }
175 bool getFlagOption(int flag) const
176 {
177 return (helicsMessageGetFlagOption(mo, flag) == HELICS_TRUE);
178 }
180 int messageID() const { return helicsMessageGetMessageID(mo); }
182 Message& messageID(int newId)
183 {
184 helicsMessageSetMessageID(mo, newId, hThrowOnError());
185 return *this;
186 }
189 HelicsMessage release()
190 {
191 HelicsMessage mreturn = mo;
192 mo = HELICS_NULL_POINTER;
193 return mreturn;
194 }
195 void clear() { helicsMessageClear(mo, HELICS_IGNORE_ERROR); }
197 DataBuffer dataBuffer() { return DataBuffer(helicsMessageDataBuffer(mo, HELICS_IGNORE_ERROR)); }
199 Message& newMessageObject(const Federate& fed);
200
202 Message& newMessageObject(const Endpoint& ept);
203
204 private:
205 HelicsMessage mo;
206 };
207
209 class Endpoint {
210 public:
212 explicit Endpoint(HelicsEndpoint hep) HELICS_NOTHROW: ep(hep) {}
214 Endpoint() HELICS_NOTHROW: ep(HELICS_NULL_POINTER) {}
216 Endpoint(const Endpoint& endpoint) HELICS_NOTHROW: ep(endpoint.ep) {}
218 Endpoint& operator=(const Endpoint& endpoint)
219 {
220 ep = endpoint.ep;
221 return *this;
222 }
224 operator HelicsEndpoint() { return ep; }
226 HelicsEndpoint baseObject() const { return ep; }
228 bool isValid() const { return (helicsEndpointIsValid(ep) == HELICS_TRUE); }
229 /* Checks if endpoint has unread messages **/
230 bool hasMessage() const
231 {
232 // returns int, 1 = true, 0 = false
233 return helicsEndpointHasMessage(ep) > 0;
234 }
236 void setDefaultDestination(const std::string& dest)
237 {
238 helicsEndpointSetDefaultDestination(ep, dest.c_str(), hThrowOnError());
239 }
241 const char* getDefaultDestination() const { return helicsEndpointGetDefaultDestination(ep); }
243 uint64_t pendingMessageCount() const { return helicsEndpointPendingMessageCount(ep); }
244
246 Message getMessage() { return Message(helicsEndpointGetMessage(ep)); }
247
249 Message createMessage() { return Message(helicsEndpointCreateMessage(ep, hThrowOnError())); }
250
256 void send(const void* data, size_t data_size)
257 {
258 helicsEndpointSendBytes(ep, data, static_cast<int>(data_size), hThrowOnError());
259 }
260
266 void sendTo(const void* data, size_t data_size, const std::string& dest)
267 {
268 helicsEndpointSendBytesTo(
269 ep, data, static_cast<int>(data_size), dest.c_str(), hThrowOnError());
270 }
276 void sendAt(const char* data, size_t data_size, HelicsTime time)
277 {
278 helicsEndpointSendBytesAt(ep, data, static_cast<int>(data_size), time, hThrowOnError());
279 }
286 void sendToAt(const void* data, size_t data_size, const std::string& dest, HelicsTime time)
287 {
288 helicsEndpointSendBytesToAt(
289 ep, data, static_cast<int>(data_size), dest.c_str(), time, hThrowOnError());
290 }
294 void send(const std::string& data)
295 {
296 helicsEndpointSendBytes(ep, &(data[0]), static_cast<int>(data.size()), hThrowOnError());
297 }
298
303 void sendTo(const std::string& data, const std::string& dest)
304 {
305 helicsEndpointSendBytesTo(
306 ep, &(data[0]), static_cast<int>(data.size()), dest.c_str(), hThrowOnError());
307 }
312 void sendAt(const std::string& data, HelicsTime time)
313 {
314 helicsEndpointSendBytesAt(
315 ep, &(data[0]), static_cast<int>(data.size()), time, hThrowOnError());
316 }
322 void sendToAt(const std::string& data, const std::string& dest, HelicsTime time)
323 {
324 helicsEndpointSendBytesToAt(
325 ep, &(data[0]), static_cast<int>(data.size()), dest.c_str(), time, hThrowOnError());
326 }
327
331 void send(const std::vector<char>& data)
332 {
333 helicsEndpointSendBytes(ep, data.data(), static_cast<int>(data.size()), hThrowOnError());
334 }
335
340 void sendTo(const std::vector<char>& data, const std::string& dest)
341 {
342 helicsEndpointSendBytesTo(
343 ep, data.data(), static_cast<int>(data.size()), dest.c_str(), hThrowOnError());
344 }
349 void sendAt(const std::vector<char>& data, HelicsTime time)
350 {
351 helicsEndpointSendBytesAt(
352 ep, data.data(), static_cast<int>(data.size()), time, hThrowOnError());
353 }
359 void sendToAt(const std::vector<char>& data, const std::string& dest, HelicsTime time)
360 {
361 helicsEndpointSendBytesToAt(
362 ep, data.data(), static_cast<int>(data.size()), dest.c_str(), time, hThrowOnError());
363 }
364
367 void sendMessage(const Message& message)
368 {
369 // returns helicsStatus
370 helicsEndpointSendMessage(ep, message, hThrowOnError());
371 }
372 #ifdef HELICS_HAS_RVALUE_REFS
375 void sendMessage(Message&& message)
376 {
377 // returns helicsStatus
378 helicsEndpointSendMessageZeroCopy(ep, message.release(), hThrowOnError());
379 }
380 #endif
383 void sendMessageZeroCopy(Message& message)
384 {
385 // returns helicsStatus
386 helicsEndpointSendMessageZeroCopy(ep, static_cast<HelicsMessage>(message), hThrowOnError());
387 message.release();
388 }
390 const char* getName() const { return helicsEndpointGetName(ep); }
392 const char* getType() { return helicsEndpointGetType(ep); }
393
395 const char* getInfo() const { return helicsEndpointGetInfo(ep); }
397 void setInfo(const std::string& info)
398 {
399 helicsEndpointSetInfo(ep, info.c_str(), HELICS_IGNORE_ERROR);
400 }
401
402 private:
403 HelicsEndpoint ep;
404 };
405
406 inline Message::Message(const Endpoint& ept):
407 mo(helicsEndpointCreateMessage(ept.baseObject(), hThrowOnError()))
408 {
409 }
410
411 inline Message& Message::newMessageObject(const Endpoint& ept)
412 {
413 HelicsMessage newmo = helicsEndpointCreateMessage(ept.baseObject(), hThrowOnError());
414 if (mo != HELICS_NULL_POINTER) {
415 helicsMessageFree(mo);
416 }
417 mo = newmo;
418 return *this;
419 }
420
421 } // namespace helicscpp
422 #endif
helicsEndpointSetDefaultDestination
void helicsEndpointSetDefaultDestination(HelicsEndpoint endpoint, const char *dst, HelicsError *err)
Definition: MessageFederateExport.cpp:215
helicsEndpointIsValid
HelicsBool helicsEndpointIsValid(HelicsEndpoint endpoint)
Definition: MessageFederateExport.cpp:206
helicsEndpointCreateMessage
HelicsMessage helicsEndpointCreateMessage(HelicsEndpoint endpoint, HelicsError *err)
Definition: MessageFederateExport.cpp:596
helicsEndpointSendBytes
void helicsEndpointSendBytes(HelicsEndpoint endpoint, const void *data, int inputDataLength, HelicsError *err)
Definition: MessageFederateExport.cpp:302
helicsEndpointSendMessageZeroCopy
void helicsEndpointSendMessageZeroCopy(HelicsEndpoint endpoint, HelicsMessage message, HelicsError *err)
Definition: MessageFederateExport.cpp:399
helicsEndpointPendingMessageCount
int helicsEndpointPendingMessageCount(HelicsEndpoint endpoint)
Definition: MessageFederateExport.cpp:463
helicsEndpointGetInfo
const char * helicsEndpointGetInfo(HelicsEndpoint end)
Definition: MessageFederateExport.cpp:689
helicsEndpointSendBytesAt
void helicsEndpointSendBytesAt(HelicsEndpoint endpoint, const void *data, int inputDataLength, HelicsTime time, HelicsError *err)
Definition: MessageFederateExport.cpp:338
helicsEndpointGetName
const char * helicsEndpointGetName(HelicsEndpoint endpoint)
Definition: MessageFederateExport.cpp:669
helicsEndpointHasMessage
HelicsBool helicsEndpointHasMessage(HelicsEndpoint endpoint)
Definition: MessageFederateExport.cpp:445
helicsEndpointSendMessage
void helicsEndpointSendMessage(HelicsEndpoint endpoint, HelicsMessage message, HelicsError *err)
Definition: MessageFederateExport.cpp:381
helicsEndpointGetType
const char * helicsEndpointGetType(HelicsEndpoint endpoint)
Definition: MessageFederateExport.cpp:651
helicsEndpointGetDefaultDestination
const char * helicsEndpointGetDefaultDestination(HelicsEndpoint endpoint)
Definition: MessageFederateExport.cpp:232
helicsEndpointSendBytesTo
void helicsEndpointSendBytesTo(HelicsEndpoint endpoint, const void *data, int inputDataLength, const char *dst, HelicsError *err)
Definition: MessageFederateExport.cpp:320
helicsEndpointGetMessage
HelicsMessage helicsEndpointGetMessage(HelicsEndpoint endpoint)
Definition: MessageFederateExport.cpp:553
helicsEndpointSendBytesToAt
void helicsEndpointSendBytesToAt(HelicsEndpoint endpoint, const void *data, int inputDataLength, const char *dst, HelicsTime time, HelicsError *err)
Definition: MessageFederateExport.cpp:356
helicsEndpointSetInfo
void helicsEndpointSetInfo(HelicsEndpoint endpoint, const char *info, HelicsError *err)
Definition: MessageFederateExport.cpp:706
HelicsEndpoint
void * HelicsEndpoint
Definition: api-data.h:37
HelicsTime
double HelicsTime
Definition: api-data.h:106
HelicsMessage
void * HelicsMessage
Definition: api-data.h:100
HELICS_FALSE
const HelicsBool HELICS_FALSE
Definition: api-data.h:121
HELICS_TRUE
const HelicsBool HELICS_TRUE
Definition: api-data.h:120
helicscpp::DataBuffer
Definition: DataBuffer.hpp:18
helicscpp::DataBuffer::getHelicsDataBuffer
HelicsDataBuffer getHelicsDataBuffer()
Definition: DataBuffer.hpp:165
helicscpp::Endpoint
Definition: Endpoint.hpp:209
helicscpp::Endpoint::sendTo
void sendTo(const std::vector< char > &data, const std::string &dest)
Definition: Endpoint.hpp:340
helicscpp::Endpoint::Endpoint
Endpoint(HelicsEndpoint hep) HELICS_NOTHROW
Definition: Endpoint.hpp:212
helicscpp::Endpoint::setInfo
void setInfo(const std::string &info)
Definition: Endpoint.hpp:397
helicscpp::Endpoint::sendToAt
void sendToAt(const void *data, size_t data_size, const std::string &dest, HelicsTime time)
Definition: Endpoint.hpp:286
helicscpp::Endpoint::getDefaultDestination
const char * getDefaultDestination() const
Definition: Endpoint.hpp:241
helicscpp::Endpoint::getName
const char * getName() const
Definition: Endpoint.hpp:390
helicscpp::Endpoint::sendTo
void sendTo(const void *data, size_t data_size, const std::string &dest)
Definition: Endpoint.hpp:266
helicscpp::Endpoint::sendTo
void sendTo(const std::string &data, const std::string &dest)
Definition: Endpoint.hpp:303
helicscpp::Endpoint::sendAt
void sendAt(const std::vector< char > &data, HelicsTime time)
Definition: Endpoint.hpp:349
helicscpp::Endpoint::baseObject
HelicsEndpoint baseObject() const
Definition: Endpoint.hpp:226
helicscpp::Endpoint::createMessage
Message createMessage()
Definition: Endpoint.hpp:249
helicscpp::Endpoint::Endpoint
Endpoint() HELICS_NOTHROW
Definition: Endpoint.hpp:214
helicscpp::Endpoint::sendAt
void sendAt(const std::string &data, HelicsTime time)
Definition: Endpoint.hpp:312
helicscpp::Endpoint::getMessage
Message getMessage()
Definition: Endpoint.hpp:246
helicscpp::Endpoint::send
void send(const std::string &data)
Definition: Endpoint.hpp:294
helicscpp::Endpoint::sendMessage
void sendMessage(const Message &message)
Definition: Endpoint.hpp:367
helicscpp::Endpoint::sendToAt
void sendToAt(const std::vector< char > &data, const std::string &dest, HelicsTime time)
Definition: Endpoint.hpp:359
helicscpp::Endpoint::Endpoint
Endpoint(const Endpoint &endpoint) HELICS_NOTHROW
Definition: Endpoint.hpp:216
helicscpp::Endpoint::getType
const char * getType()
Definition: Endpoint.hpp:392
helicscpp::Endpoint::getInfo
const char * getInfo() const
Definition: Endpoint.hpp:395
helicscpp::Endpoint::send
void send(const void *data, size_t data_size)
Definition: Endpoint.hpp:256
helicscpp::Endpoint::sendMessageZeroCopy
void sendMessageZeroCopy(Message &message)
Definition: Endpoint.hpp:383
helicscpp::Endpoint::setDefaultDestination
void setDefaultDestination(const std::string &dest)
Definition: Endpoint.hpp:236
helicscpp::Endpoint::send
void send(const std::vector< char > &data)
Definition: Endpoint.hpp:331
helicscpp::Endpoint::sendToAt
void sendToAt(const std::string &data, const std::string &dest, HelicsTime time)
Definition: Endpoint.hpp:322
helicscpp::Endpoint::sendAt
void sendAt(const char *data, size_t data_size, HelicsTime time)
Definition: Endpoint.hpp:276
helicscpp::Endpoint::isValid
bool isValid() const
Definition: Endpoint.hpp:228
helicscpp::Endpoint::operator=
Endpoint & operator=(const Endpoint &endpoint)
Definition: Endpoint.hpp:218
helicscpp::Endpoint::pendingMessageCount
uint64_t pendingMessageCount() const
Definition: Endpoint.hpp:243
helicscpp::Federate
Definition: cpp98/Federate.hpp:229
helicscpp::Message
Definition: Endpoint.hpp:22
helicscpp::Message::source
const char * source() const
Definition: Endpoint.hpp:69
helicscpp::Message::data
Message & data(const char *str)
Definition: Endpoint.hpp:135
helicscpp::Message::c_str
const char * c_str() const
Definition: Endpoint.hpp:159
helicscpp::Message::destination
Message & destination(const std::string &dest)
Definition: Endpoint.hpp:85
helicscpp::Message::append
Message & append(const void *ptr, int size)
Definition: Endpoint.hpp:147
helicscpp::Message::~Message
~Message()
Definition: Endpoint.hpp:58
helicscpp::Message::time
HelicsTime time() const
Definition: Endpoint.hpp:161
helicscpp::Message::messageID
int messageID() const
Definition: Endpoint.hpp:180
helicscpp::Message::data
void * data() const
Definition: Endpoint.hpp:121
helicscpp::Message::Message
Message() HELICS_NOTHROW
Definition: Endpoint.hpp:25
helicscpp::Message::setFlag
Message & setFlag(int flag, bool val)
Definition: Endpoint.hpp:169
helicscpp::Message::resize
void resize(int newSize)
Definition: Endpoint.hpp:116
helicscpp::Message::newMessageObject
Message & newMessageObject(const Federate &fed)
Definition: cpp98/MessageFederate.hpp:117
helicscpp::Message::originalSource
Message & originalSource(const std::string &osrc)
Definition: Endpoint.hpp:100
helicscpp::Message::release
HelicsMessage release()
Definition: Endpoint.hpp:189
helicscpp::Message::data
Message & data(DataBuffer buffer)
Definition: Endpoint.hpp:141
helicscpp::Message::data
Message & data(const void *ptr, int size)
Definition: Endpoint.hpp:123
helicscpp::Message::Message
Message(HelicsMessage hmo) HELICS_NOTHROW
Definition: Endpoint.hpp:31
helicscpp::Message::reserve
void reserve(int newSize)
Definition: Endpoint.hpp:119
helicscpp::Message::source
Message & source(const std::string &src)
Definition: Endpoint.hpp:71
helicscpp::Message::destination
Message & destination(const char *dest)
Definition: Endpoint.hpp:91
helicscpp::Message::originalSource
const char * originalSource() const
Definition: Endpoint.hpp:98
helicscpp::Message::operator=
Message & operator=(const Message &mess) HELICS_NOTHROW
Definition: Endpoint.hpp:39
helicscpp::Message::dataBuffer
DataBuffer dataBuffer()
Definition: Endpoint.hpp:197
helicscpp::Message::originalDestination
Message & originalDestination(const std::string &odest)
Definition: Endpoint.hpp:108
helicscpp::Message::append
Message & append(const std::string &str)
Definition: Endpoint.hpp:153
helicscpp::Message::originalDestination
const char * originalDestination() const
Definition: Endpoint.hpp:106
helicscpp::Message::source
Message & source(const char *src)
Definition: Endpoint.hpp:77
helicscpp::Message::size
int size() const
Definition: Endpoint.hpp:114
helicscpp::Message::destination
const char * destination() const
Definition: Endpoint.hpp:83
helicscpp::Message::getFlagOption
bool getFlagOption(int flag) const
Definition: Endpoint.hpp:175
helicscpp::Message::Message
Message(const Message &mess) HELICS_NOTHROW
Definition: Endpoint.hpp:34
helicscpp::Message::data
Message & data(const std::string &str)
Definition: Endpoint.hpp:129
helicscpp::Message::isValid
bool isValid() const
Definition: Endpoint.hpp:67
helicscpp::Message::time
Message & time(HelicsTime val)
Definition: Endpoint.hpp:163
helicscpp::Message::messageID
Message & messageID(int newId)
Definition: Endpoint.hpp:182
helicscpp::hThrowOnError
Definition: helicsExceptions.hpp:38
helicsMessageGetString
const char * helicsMessageGetString(HelicsMessage message)
Definition: MessageFederateExport.cpp:980
helicsMessageGetOriginalSource
const char * helicsMessageGetOriginalSource(HelicsMessage message)
Definition: MessageFederateExport.cpp:931
helicsMessageAppendData
void helicsMessageAppendData(HelicsMessage message, const void *data, int inputDataLength, HelicsError *err)
Definition: MessageFederateExport.cpp:1190
helicsMessageClone
HelicsMessage helicsMessageClone(HelicsMessage message, HelicsError *err)
Definition: MessageFederateExport.cpp:1228
helicsMessageSetFlagOption
void helicsMessageSetFlagOption(HelicsMessage message, int flag, HelicsBool flagValue, HelicsError *err)
Definition: MessageFederateExport.cpp:1139
helicsMessageGetByteCount
int helicsMessageGetByteCount(HelicsMessage message)
Definition: MessageFederateExport.cpp:991
helicsMessageSetDestination
void helicsMessageSetDestination(HelicsMessage message, const char *dst, HelicsError *err)
Definition: MessageFederateExport.cpp:1060
helicsMessageResize
void helicsMessageResize(HelicsMessage message, int newSize, HelicsError *err)
Definition: MessageFederateExport.cpp:1093
helicsMessageSetData
void helicsMessageSetData(HelicsMessage message, const void *data, int inputDataLength, HelicsError *err)
Definition: MessageFederateExport.cpp:1167
helicsMessageGetSource
const char * helicsMessageGetSource(HelicsMessage message)
Definition: MessageFederateExport.cpp:913
helicsMessageSetDataBuffer
void helicsMessageSetDataBuffer(HelicsMessage message, HelicsDataBuffer data, HelicsError *err)
Definition: MessageFederateExport.cpp:1176
helicsMessageGetFlagOption
HelicsBool helicsMessageGetFlagOption(HelicsMessage message, int flag)
Definition: MessageFederateExport.cpp:967
helicsMessageGetBytesPointer
void * helicsMessageGetBytesPointer(HelicsMessage message)
Definition: MessageFederateExport.cpp:1024
helicsMessageSetString
void helicsMessageSetString(HelicsMessage message, const char *data, HelicsError *err)
Definition: MessageFederateExport.cpp:1157
helicsMessageDataBuffer
HelicsDataBuffer helicsMessageDataBuffer(HelicsMessage message, HelicsError *err)
Definition: MessageFederateExport.cpp:1033
helicsMessageFree
void helicsMessageFree(HelicsMessage message)
Definition: MessageFederateExport.cpp:1252
helicsMessageGetMessageID
int helicsMessageGetMessageID(HelicsMessage message)
Definition: MessageFederateExport.cpp:958
helicsMessageClear
void helicsMessageClear(HelicsMessage message, HelicsError *err)
Definition: MessageFederateExport.cpp:1199
helicsMessageGetDestination
const char * helicsMessageGetDestination(HelicsMessage message)
Definition: MessageFederateExport.cpp:922
helicsMessageSetSource
void helicsMessageSetSource(HelicsMessage message, const char *src, HelicsError *err)
Definition: MessageFederateExport.cpp:1051
helicsMessageSetTime
void helicsMessageSetTime(HelicsMessage message, HelicsTime time, HelicsError *err)
Definition: MessageFederateExport.cpp:1084
helicsMessageSetOriginalDestination
void helicsMessageSetOriginalDestination(HelicsMessage message, const char *dst, HelicsError *err)
Definition: MessageFederateExport.cpp:1076
helicsMessageGetOriginalDestination
const char * helicsMessageGetOriginalDestination(HelicsMessage message)
Definition: MessageFederateExport.cpp:940
helicsMessageReserve
void helicsMessageReserve(HelicsMessage message, int reserveSize, HelicsError *err)
Definition: MessageFederateExport.cpp:1107
helicsMessageSetOriginalSource
void helicsMessageSetOriginalSource(HelicsMessage message, const char *src, HelicsError *err)
Definition: MessageFederateExport.cpp:1068
helicsMessageGetTime
HelicsTime helicsMessageGetTime(HelicsMessage message)
Definition: MessageFederateExport.cpp:949
helicsMessageSetMessageID
void helicsMessageSetMessageID(HelicsMessage message, int32_t messageID, HelicsError *err)
Definition: MessageFederateExport.cpp:1121
helicsMessageIsValid
HelicsBool helicsMessageIsValid(HelicsMessage message)
Definition: MessageFederateExport.cpp:1042
helicscpp
Definition: cpp98/Broker.hpp:18