11#define __RTLog_h__ included
17#ifndef __RTProtocol_h__
18#include <RTProtocol.h>
34 typedef ::RTLogStream Stream;
45 Base(std::ostream& stream);
46 RTS_INLINE
~Base(
void );
51 RTS_INLINE
void cr(
void );
53 void crtab(
int = 1 );
56 void open(
const char * );
63 void log(
const char * str);
73 void show(
const char * str);
86 void log(
long double );
90 void log(
long long );
106 void log(
unsigned int );
107 void log(
unsigned long );
108 void log(
unsigned long long );
109 void log(
unsigned short );
110 void log(
unsigned char );
113 void show(
wchar_t );
114#if RTUseFloatingPoint
117 void show(
long double );
121 void show(
long long );
137 void show(
unsigned int );
138 void show(
unsigned long );
139 void show(
unsigned long long );
140 void show(
unsigned short );
141 void show(
unsigned char );
172 template <
typename T>
175 outputStream << value;
184 bool valueParsingUtil(
const void * value,
const RTObject_class * type );
185 std::ostream& outputStream;
194 static std::ostream&
endl( std::ostream& os );
199 static std::ostream&
lock( std::ostream& os );
204 static std::ostream&
unlock( std::ostream& os );
Represents a log port.
Definition: RTLog.h:38
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:29
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:173
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