Atlas_Formatter (3) - Linux Manuals

Atlas_Formatter: Atlas stream formatter.

NAME

Atlas::Formatter - Atlas stream formatter.

SYNOPSIS


#include <Formatter.h>

Inherits Atlas::Bridge.

Public Member Functions


Formatter (std::iostream &s, Atlas::Bridge &b)

virtual void streamBegin ()
Begin an Atlas stream.
virtual void streamMessage ()
Start a message in an Atlas stream.
virtual void streamEnd ()
Ends the Atlas stream.
virtual void mapMapItem (const std::string &name)
Starts a map object to the currently streamed map.
virtual void mapListItem (const std::string &name)
Starts a list object to the currently streamed map.
virtual void mapIntItem (const std::string &name, long)
Adds an integer to the currently streames map.
virtual void mapFloatItem (const std::string &name, double)
Adds a float to the currently streamed map.
virtual void mapStringItem (const std::string &name, const std::string &)
Adds a string to the currently streamed map.
virtual void mapEnd ()
Ends the currently streamed map.
virtual void listMapItem ()
Starts a map object in the currently streamed list.
virtual void listListItem ()
Starts a list object in the currently streamed list.
virtual void listIntItem (long)
Adds an integer to the currently streames list.
virtual void listFloatItem (double)
Adds a float to the currently streamed list.
virtual void listStringItem (const std::string &)
Adds a string to the currently streamed list.
virtual void listEnd ()
Ends the currently streamed list.
void setSpacing (int s)

Protected Attributes


std::iostream & m_stream

Bridge & m_bridge

int m_indent

int m_spacing

Detailed Description

Atlas stream formatter.

This class implements the Bridge interface that accepts an Atlas stream. It copies the input stream to an output bridge, inserting formatting characters according to settings defined at construction time.

See also:

Codec

Author

Generated automatically by Doxygen for Atlas-C++ from the source code.