graph  5.1.2
Graph: generic attributed relational graphs
carto::TreeParser_shfj Class Reference

To read a Tree from a file. More...

#include <graph/tree/tparser_shfj.h>

Inheritance diagram for carto::TreeParser_shfj:
Collaboration diagram for carto::TreeParser_shfj:

Public Member Functions

 TreeParser_shfj (const SyntaxSet &syntax, const HelperSet &helpers=HelperSet())
 configure the parameters More...
 
 TreeParser_shfj (const TreeFactory &factory, const std::string &filename, const SyntaxSet &syntax, const HelperSet &helpers=HelperSet())
 configure the parametres More...
 
 TreeParser_shfj (const TreeFactory &factory, const SyntaxSet &syntax, const HelperSet &helpers=HelperSet())
 configure the parametres More...
 
virtual ~TreeParser_shfj ()
 clean up More...
 
Visitor methods
virtual void visitTree (Tree *tree)
 read a Tree from a file More...
 
IO functions
virtual Treeread ()
 creates and reads a tree More...
 
virtual void read (Tree &)
 
virtual void close ()
 
virtual void attach (rc_ptr< DataSource > ds)
 
virtual void detach ()
 
virtual rc_ptr< DataSource > dataSource ()
 
std::string name () const
 
- Public Member Functions inherited from carto::TreeParser
 TreeParser ()
 
virtual ~TreeParser ()
 
const_ref< DataSource > dataSource () const
 
- Public Member Functions inherited from TreeVisitor
virtual ~TreeVisitor ()
 
virtual void visitAttributedObject (carto::AttributedObject *ao)
 

Helpers

TreeFactory_factory
 Nodes builder. More...
 
Tree_topTree
 Remind the top-level tree. More...
 
virtual void readTree (Tree *tree)
 read a Tree attributes from a file More...
 
virtual TreereadSubTree ()
 

Additional Inherited Members

- Protected Member Functions inherited from TreeVisitor
 TreeVisitor ()
 

Detailed Description

To read a Tree from a file.

Definition at line 60 of file tparser_shfj.h.

Constructor & Destructor Documentation

◆ TreeParser_shfj() [1/3]

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

configure the parameters

Parameters
syntax
helpers

◆ TreeParser_shfj() [2/3]

carto::TreeParser_shfj::TreeParser_shfj ( const TreeFactory factory,
const std::string &  filename,
const SyntaxSet syntax,
const HelperSet &  helpers = HelperSet() 
)

configure the parametres

Parameters
factoryfactory used to build the tree nodes
filenamename of the file to read from
syntax
helpers

◆ TreeParser_shfj() [3/3]

carto::TreeParser_shfj::TreeParser_shfj ( const TreeFactory factory,
const SyntaxSet syntax,
const HelperSet &  helpers = HelperSet() 
)

configure the parametres

Parameters
factoryfactory used to build the tree nodes
syntax
helpers

◆ ~TreeParser_shfj()

virtual carto::TreeParser_shfj::~TreeParser_shfj ( )
virtual

clean up

Member Function Documentation

◆ attach()

virtual void carto::TreeParser_shfj::attach ( rc_ptr< DataSource >  ds)
virtual

Implements carto::TreeParser.

◆ close()

virtual void carto::TreeParser_shfj::close ( )
virtual

Implements carto::TreeParser.

◆ dataSource()

virtual rc_ptr<DataSource> carto::TreeParser_shfj::dataSource ( )
virtual

Implements carto::TreeParser.

◆ detach()

virtual void carto::TreeParser_shfj::detach ( )
virtual

Implements carto::TreeParser.

◆ name()

std::string carto::TreeParser_shfj::name ( ) const
virtual

Reimplemented from carto::TreeParser.

◆ read() [1/2]

virtual Tree* carto::TreeParser_shfj::read ( )
virtual

creates and reads a tree

Implements carto::TreeParser.

◆ read() [2/2]

virtual void carto::TreeParser_shfj::read ( Tree )
virtual

Implements carto::TreeParser.

◆ readSubTree()

virtual Tree* carto::TreeParser_shfj::readSubTree ( )
protectedvirtual

◆ readTree()

virtual void carto::TreeParser_shfj::readTree ( Tree tree)
protectedvirtual

read a Tree attributes from a file

Parameters
treetree to read into

◆ visitTree()

virtual void carto::TreeParser_shfj::visitTree ( Tree tree)
virtual

read a Tree from a file

Parameters
treetree to read into

Reimplemented from TreeVisitor.

Member Data Documentation

◆ _factory

TreeFactory* carto::TreeParser_shfj::_factory
protected

Nodes builder.

Definition at line 127 of file tparser_shfj.h.

◆ _topTree

Tree* carto::TreeParser_shfj::_topTree
protected

Remind the top-level tree.

Definition at line 129 of file tparser_shfj.h.


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