graph  5.1.2
Graph: generic attributed relational graphs
TreeWriter Class Reference

To write an Tree to a file. More...

#include <graph/tree/twriter.h>

Inheritance diagram for TreeWriter:
Collaboration diagram for TreeWriter:

Public Member Functions

 TreeWriter (const std::string &filename, const carto::SyntaxSet &syntax, const HelperSet &helpers=HelperSet())
 configure the parametres More...
 
 TreeWriter (const carto::SyntaxSet &syntax, const HelperSet &helpers=HelperSet())
 
virtual ~TreeWriter ()
 
- Public Member Functions inherited from ConstTreeVisitor
virtual ~ConstTreeVisitor ()
 
virtual void visitAttributedObject (const carto::AttributedObject *ao)
 
void visitAttributedObject (carto::AttributedObject *ao)
 Entry point of the visitor – DO NOT OVERRIDE. More...
 
void visitTree (Tree *tr)
 Entry point of the visitor – DO NOT OVERRIDE. More...
 

Visitor methods

virtual void visitTree (const Tree *tree)
 write a Tree to a file More...
 
virtual void writeTree (const Tree *node, const std::string &type)
 

Additional Inherited Members

- Protected Member Functions inherited from ConstTreeVisitor
 ConstTreeVisitor ()
 The programmer should not call the constructor of an abstract base class. More...
 
- Protected Member Functions inherited from TreeVisitor
 TreeVisitor ()
 
virtual ~TreeVisitor ()
 

Detailed Description

To write an Tree to a file.

Definition at line 55 of file twriter.h.

Constructor & Destructor Documentation

◆ TreeWriter() [1/2]

TreeWriter::TreeWriter ( const std::string &  filename,
const carto::SyntaxSet syntax,
const HelperSet &  helpers = HelperSet() 
)

configure the parametres

Parameters
filenamename of the file to write into
syntaxsyntactic attribute / rules pairs
helpersalternate/specialized IO routines

◆ TreeWriter() [2/2]

TreeWriter::TreeWriter ( const carto::SyntaxSet syntax,
const HelperSet &  helpers = HelperSet() 
)

◆ ~TreeWriter()

virtual TreeWriter::~TreeWriter ( )
virtual

Member Function Documentation

◆ visitTree()

virtual void TreeWriter::visitTree ( const Tree tree)
virtual

write a Tree to a file

Parameters
treetree to save

Reimplemented from ConstTreeVisitor.

◆ writeTree()

virtual void TreeWriter::writeTree ( const Tree node,
const std::string &  type 
)
protectedvirtual

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