gatb.core-API-1.4.2
RawDumpPropertiesVisitor Class Reference

Raw dump of a IProperties instance. More...

#include <Property.hpp>

Inheritance diagram for RawDumpPropertiesVisitor:
Inheritance graph

Public Member Functions

 RawDumpPropertiesVisitor (std::ostream &os=std::cout, int width=40, char sep=':')
 
virtual ~RawDumpPropertiesVisitor ()
 
void visitBegin ()
 
void visitEnd ()
 
void visitProperty (IProperty *prop)
 
- Public Member Functions inherited from SmartPointer
void use ()
 
void forget ()
 
- Public Member Functions inherited from ISmartPointer
virtual ~ISmartPointer ()
 

Additional Inherited Members

- Protected Member Functions inherited from SmartPointer
 SmartPointer ()
 
virtual ~SmartPointer ()
 

Detailed Description

Raw dump of a IProperties instance.

This file format is simply a list of lines, with each line holding the key and the value (separated by a space character). Note that the depth information is lost.

This kind of output is perfect for keeping properties in a configuration file for instance. This is used by a tool for its configuration file '.toolrc'

Constructor & Destructor Documentation

RawDumpPropertiesVisitor ( std::ostream &  os = std::cout,
int  width = 40,
char  sep = ':' 
)

Constructor.

Parameters
os: output stream where the visitor can dump information.

Desctructor.

Member Function Documentation

void visitBegin ( )
inlinevirtual

Called before the true visit of the IProperty instance.

Implements IPropertiesVisitor.

void visitEnd ( )
inlinevirtual

Called after the true visit of the IProperty instance.

Implements IPropertiesVisitor.

void visitProperty ( IProperty prop)
virtual

Visit of the IProperty instance.

Parameters
[in]prop: the instance to be visited.

Implements IPropertiesVisitor.


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