All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
gazebo::common::Logger::Buffer Class Reference

String buffer for the base logger. More...

#include <Console.hh>

Inheritance diagram for gazebo::common::Logger::Buffer:
Inheritance graph
[legend]
Collaboration diagram for gazebo::common::Logger::Buffer:
Collaboration graph
[legend]

Public Member Functions

 Buffer (LogType _type, int _color)
 Constructor. More...
 
virtual ~Buffer ()
 Destructor. More...
 
virtual int sync ()
 Sync the stream (output the string buffer contents). More...
 

Public Attributes

int color
 ANSI color code using Select Graphic Rendition parameters (SGR). More...
 
LogType type
 Destination type for the messages. More...
 

Detailed Description

String buffer for the base logger.

Constructor & Destructor Documentation

gazebo::common::Logger::Buffer::Buffer ( LogType  _type,
int  _color 
)

Constructor.

Parameters
[in]_typeOutput destination type (STDOUT, or STDERR)
[in]_colorColor of the output stream.
virtual gazebo::common::Logger::Buffer::~Buffer ( )
virtual

Destructor.

Member Function Documentation

virtual int gazebo::common::Logger::Buffer::sync ( )
virtual

Sync the stream (output the string buffer contents).

Returns
Return 0 on success.

Member Data Documentation

int gazebo::common::Logger::Buffer::color

ANSI color code using Select Graphic Rendition parameters (SGR).

See http://en.wikipedia.org/wiki/ANSI_escape_code#Colors

LogType gazebo::common::Logger::Buffer::type

Destination type for the messages.


The documentation for this class was generated from the following file: