Atlas-C++
Public Member Functions | Protected Attributes | List of all members
Atlas::Formatter Class Reference

Atlas stream formatter. More...

#include <Formatter.h>

Inheritance diagram for Atlas::Formatter:
Atlas::Bridge Atlas::MultiLineListFormatter

Public Member Functions

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

Protected Attributes

std::ostream & m_stream
 
Bridgem_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

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

Copyright 2000-2004 the respective authors.

This document can be licensed under the terms of the GNU Free Documentation License or the GNU General Public License and may be freely distributed under the terms given by one of these licenses.