3#include <NDEVR/LogStream.h>
4#include <NDEVR/Connection.h>
111 String m_time_send_format =
String(
"YYYY-MM-DD hh:mm:ss");
112 String m_message_send_format =
String(
"[time] [message]\n");
114 fltp04 m_progress_epsilon = Constant<fltp04>::Invalid;
115 fltp04 m_previous_progress = 1.0f;
116 bool m_owns_connection =
false;
117 bool m_use_local_time =
false;
void clearConnection()
Clears the connection.
ConnectionPipeStream(Connection *connection, bool open_connection)
Sets the connection, if a connection is already set, removes that connection.
virtual void setProgress(uint04 id, fltp04 progress) override
Will send progress across the network based on the given format parameters.
void setMessageSendFormat(const String &format)
Sets the message format where [message] will be replaced with the raw log message,...
bool setConnection(const ConnectionInfo &connect_info)
Sets the connection, if a connection is already set, clears that connection (see clearConnection).
bool canSendMessages() const
Returns true if the connection exists and is ready to send.
void setProgressSendFormat(const String &format)
Sets the message format where [message] will be replaced with the raw log message,...
ConnectionPipeStream()
Default constructor, no connection instance.
ConnectionPipeStream(const ConnectionInfo &connection)
Sets the connection, if a connection is already set, removes that connection.
void setTimeSendFormat(const String &format, bool use_local_time)
Sets the Time format for the time string (See https://ndevr.org/time-patterns/).
bool setConnection(Connection *connection, bool open_connection)
Sets the connection, if a connection is already set, clears that connection (see clearConnection).
virtual void addMessage(uint04 id, const LogMessage &message) override
Will send message across the network based on the given format parameters.
A standard interface for all types of connections that allow transmitting and receiving of data betwe...
A class that allows for specific log information to be conveyed to a InfoPipe object including inform...
A listener that receives and processes log messages and progress updates from an InfoPipe.
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
A structure designed to store information about a specific Connection.