17 #ifndef IOX_POSH_RUNTIME_IPC_MESSAGE_HPP
18 #define IOX_POSH_RUNTIME_IPC_MESSAGE_HPP
20 #include "iceoryx_posh/internal/log/posh_logging.hpp"
52 IpcMessage(const std::initializer_list<std::
string>& msg) noexcept;
64 IpcMessage& operator<<(const T& entry) noexcept;
114 template <typename T>
115 void addEntry(const T& entry) noexcept;
122 static const
char m_separator;
124 bool m_isValid{
true};
125 uint32_t m_numberOfElements{0};
132 #include "iceoryx_posh/internal/runtime/ipc_message.inl"
Definition: ipc_message.hpp:43
void addEntry(const T &entry) noexcept
Adds a new entry to the IpcMessage, if the entry is invalid no entry is added and the IpcMessage beco...
Definition: ipc_message.inl:27
bool isValid() const noexcept
check if the message is valid
IpcMessage() noexcept=default
Creates an empty and valid IPC channel message.
void setMessage(const std::string &msg) noexcept
Takes a separator separated string and interprets it as a IpcMessage. In this case the IpcMessage can...
void clearMessage() noexcept
Clears the message. After a call to clearMessage() the.
std::string getElementAtIndex(const uint32_t index) const noexcept
Returns the entry at position f_index. If f_index is larger then the sum of the entries stored in Ipc...
std::string getMessage() const noexcept
The message is casted to the actual separator separated string If the message is invalid the return v...
bool isValidEntry(const std::string &entry) const noexcept
returns if an entry is valid. Non valid entries are containing at least one separator
uint32_t getNumberOfElements() const noexcept
Returns the number of entries stored in IpcMessage. If the message is invalid the return value is und...
Definition: service_description.hpp:29