1 #ifndef UMPS_MESSAGEFORMATS_TEXT_HPP
2 #define UMPS_MESSAGEFORMATS_TEXT_HPP
4 #include "umps/messageFormats/message.hpp"
5 namespace UMPS::MessageFormats
78 [[nodiscard]] std::unique_ptr<UMPS::MessageFormats::
IMessage>
clone() const final;
92 std::unique_ptr<TextImpl> pImpl;
Defines a text-based message. For example, this class would allow you to send the contents of a text ...
Definition: text.hpp:13
Text(const Text &message)
Copy constructor.
std::string getMessageType() const noexcept final
void clear() noexcept
Resets the class and releases all memory.
std::string getContents() const noexcept
Text & operator=(Text &&message) noexcept
Move assignment.
std::string getMessageVersion() const noexcept final
void fromMessage(const std::string &message) final
Creates the class from a message.
Text(Text &&message) noexcept
Move constructor.
std::unique_ptr< UMPS::MessageFormats::IMessage > clone() const final
std::string toMessage() const final
Converts the text class to a string message.
void setContents(const std::string &contents) noexcept
Sets the contents of a text message.
Text & operator=(const Text &message)
Copy assignment.
std::unique_ptr< UMPS::MessageFormats::IMessage > createInstance() const noexcept final