Atlas-C++
Public Member Functions | List of all members
Atlas::PresentationBridge Class Reference

A bridge which is meant to be used solely for presenting Element data. More...

#include <PresentationBridge.h>

Inheritance diagram for Atlas::PresentationBridge:
Atlas::Bridge

Public Member Functions

 PresentationBridge (std::stringstream &stream)
 
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 setMaxItemsPerLevel (size_t maxItems)
 Sets the max number of items to print per level. More...
 
void setStartFilteringLevel (size_t startFilteringLevel)
 Sets the level at which filtering, if setMaxItemsPerLevel() has been called, should occur. More...
 

Detailed Description

A bridge which is meant to be used solely for presenting Element data.

Member Function Documentation

void Atlas::PresentationBridge::setMaxItemsPerLevel ( size_t  maxItems)

Sets the max number of items to print per level.

This is useful to prevent too much output.

Parameters
maxItemsThe max number of items. 0 disables this feature (which is the default).
void Atlas::PresentationBridge::setStartFilteringLevel ( size_t  startFilteringLevel)

Sets the level at which filtering, if setMaxItemsPerLevel() has been called, should occur.

Default is 1 (i.e. print everything for the top level).

Parameters
startFilteringLevelAt which level filtering should start.

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.