11#define __RTLog_h__ included
17#ifndef __RTProtocol_h__
18#include <RTProtocol.h>
41 RTS_INLINE
Base(
void );
42 RTS_INLINE
Base(std::ostream& stream);
43 RTS_INLINE
~Base(
void );
48 RTS_INLINE
void cr(
void );
50 void crtab(
int = 1 );
53 void open(
const char * );
60 void log(
const char * str);
70 void show(
const char * str);
82 void log(
long double );
86 void log(
long long );
102 void log(
unsigned int );
103 void log(
unsigned long );
104 void log(
unsigned long long );
105 void log(
unsigned short );
106 void log(
unsigned char );
109#if RTUseFloatingPoint
112 void show(
long double );
116 void show(
long long );
132 void show(
unsigned int );
133 void show(
unsigned long );
134 void show(
unsigned long long );
135 void show(
unsigned short );
136 void show(
unsigned char );
167 template <
typename T>
170 outputStream << value;
179 bool valueParsingUtil(
const void * value,
const RTObject_class * type );
180 std::ostream& outputStream;
189 static std::ostream&
endl( std::ostream& os );
194 static std::ostream&
lock( std::ostream& os );
199 static std::ostream&
unlock( std::ostream& os );
Represents a log port.
Definition: RTLog.h:35
Base & operator<<(const RTTypedValue &info)
Print an object to the log.
Base & operator<<(std::ostream &(*manip)(std::ostream &))
Used to call endl.
void log(const void *data, const RTObject_class *type)
Print the default ASCII encoding of an object to the log, followed by a carriage return.
void log(const char *str)
Print a string to the log, followed by a carriage return.
void commit(void)
Flush all buffered characters to the log.
void cr(void)
Print a carriage return to the log.
Definition: RTLog.inl:41
void show(const RTString &str)
Print a string to the log.
void log(const RTString &str)
Print a string to the log, followed by a carriage return.
Base & operator<<(const RTDataObject &obj)
Print an object to the log.
void show(const void *data, const RTObject_class *type)
Print the default ASCII encoding of an object to the log.
void show(const char *str)
Print a string to the log.
Base & operator<<(const T &value)
Template function to print the value of variable to the log.
Definition: RTLog.h:168
Provides a common interface to certain data type implementations (e.g.
Definition: RTDataObject.h:33
Represents a general capsule port typed by a protocol which determines the set of events that can be ...
Definition: RTProtocol.h:50
A C-style string wrapped in a data object.
Definition: RTString.h:24
Represents the predefined "Log" protocol.
Definition: RTLog.h:32
static std::ostream & lock(std::ostream &os)
Lock the Log::out or Log::err log statement.
static std::ostream & endl(std::ostream &os)
Insert the new line and flush the buffer.
static std::ostream & unlock(std::ostream &os)
Unlock the Log::out or Log::err log statement.
A type descriptor providing information about a type.
Definition: RTObject_class.h:64
Definition: RTProtocolDescriptor.h:40
Encapsulates a data object and its type descriptor.
Definition: RTTypedValue.h:29