SiGraph: sulcal graphs


sigraph::MReader Class Reference

#include <si/model/mReader.h>

Inheritance diagram for sigraph::MReader:
Collaboration diagram for sigraph::MReader:

Public Member Functions

 MReader (const std::string &filename, const TreePostParser::FactorySet &fs=baseFactorySet(), const carto::SyntaxSet &synt=syntax(), const carto::AttributedReader::HelperSet &helpers_=helpers())
 
 MReader (const TreePostParser::FactorySet &fs=baseFactorySet(), const carto::SyntaxSet &synt=syntax(), const carto::AttributedReader::HelperSet &helpers_=helpers())
 
virtual ~MReader ()
 
virtual ModelreadModel ()
 
void addFactory (const std::string &synt, TreePostParser::Factory fact)
 
void addFactories (const TreePostParser::FactorySet &fs)
 
void setFactories (const TreePostParser::FactorySet &fs)
 
void aliasFactory (const std::string &dest, const std::string &source)
 replace factory dest by source (like dest=source)
 
const TreePostParser::FactorySetfactories ()
 
- Public Member Functions inherited from sigraph::ExoticTreeReader
 ExoticTreeReader (const std::string &filename, const carto::SyntaxSet &attr, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
 ExoticTreeReader (const carto::SyntaxSet &attr, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
 ExoticTreeReader (const TreeFactory &factory, const std::string &filename, const carto::SyntaxSet &attr, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
 ExoticTreeReader (const TreeFactory &factory, const carto::SyntaxSet &attr, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
virtual ~ExoticTreeReader ()
 
virtual Treeread ()
 Crée l'arbre et le lit.
 
- Public Member Functions inherited from TreeReader
 TreeReader (const std::string &filename, const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
 TreeReader (const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
 TreeReader (const TreeFactory &factory, const std::string &filename, const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
 TreeReader (const TreeFactory &factory, const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
virtual ~TreeReader ()
 
virtual void read (Tree &)
 
virtual void use read (Tree &) instead")))
 
void open (const std::string &filename) __attribute__((__deprecated__("use attach() instead")))
 
void close ()
 
void attach (std::istream &s, int line_num=1)
 
void attach (const std::string &filename)
 
void attach (carto::rc_ptr< carto::DataSource > ds)
 
void detach ()
 
virtual std::string name () const
 
const carto::rc_ptr< carto::DataSource > dataSource () const
 
carto::rc_ptr< carto::DataSource > dataSource ()
 
std::list< carto::TreeParser * > & parsers ()
 
const carto::SyntaxSetsyntaxSet () const
 
void setSyntax (const carto::SyntaxSet &syntax)
 
- Public Member Functions inherited from TreeVisitor
virtual ~TreeVisitor ()
 
virtual void visitAttributedObject (carto::AttributedObject *ao)
 
virtual void visitTree (Tree *tree)
 

Static Public Member Functions

static TreePostParser::FactorySet baseFactorySet ()
 
static carto::AttributedReader::HelperSet * initHelpers ()
 
static carto::PythonReader::HelperSet * initPythonHelpers ()
 
static carto::PythonReader::HelperSet & python_helpers ()
 
static carto::SyntaxSetsyntax ()
 
static carto::AttributedReader::HelperSet & helpers ()
 
static void delete_helpers ()
 
- Static Public Member Functions inherited from sigraph::ExoticTreeReader
static carto::SyntaxSet initSyntax (const std::string &filename)
 

Protected Member Functions

virtual void parse (Tree *ao)
 
- Protected Member Functions inherited from sigraph::ExoticTreeReader
virtual void readTree (Tree *t)
 
void parseTree (Tree *tr)
 
virtual void parse (carto::AttributedObject *)
 
- Protected Member Functions inherited from TreeVisitor
 TreeVisitor ()
 

Static Protected Member Functions

static void buildTop (carto::AttributedObject *parent, Tree *ao, const std::string &filename)
 
static void buildTree (carto::AttributedObject *parent, Tree *ao, const std::string &filename)
 
static void buildLeaf (carto::AttributedObject *parent, Tree *ao, const std::string &filename)
 
static void buildNull (carto::AttributedObject *parent, Tree *ao, const std::string &filename)
 
static void buildConst (carto::AttributedObject *parent, Tree *ao, const std::string &filename)
 
static void parseModel (Model *mod, carto::AttributedObject *parent, Tree *ao)
 
static carto::PythonReader::HelperSet *& python_helpers_p ()
 
static carto::AttributedReader::HelperSet *& helpers_p ()
 
static carto::SyntaxSet *& syntax_p ()
 

Protected Attributes

TreePostParser::FactorySet _knownElems
 
bool _isOpen
 

Detailed Description

Definition at line 16 of file mReader.h.

Constructor & Destructor Documentation

◆ MReader() [1/2]

sigraph::MReader::MReader ( const std::string & filename,
const TreePostParser::FactorySet & fs = baseFactorySet(),
const carto::SyntaxSet & synt = syntax(),
const carto::AttributedReader::HelperSet & helpers_ = helpers() )

◆ MReader() [2/2]

sigraph::MReader::MReader ( const TreePostParser::FactorySet & fs = baseFactorySet(),
const carto::SyntaxSet & synt = syntax(),
const carto::AttributedReader::HelperSet & helpers_ = helpers() )

◆ ~MReader()

virtual sigraph::MReader::~MReader ( )
virtual

Member Function Documentation

◆ addFactories()

void sigraph::MReader::addFactories ( const TreePostParser::FactorySet & fs)

◆ addFactory()

void sigraph::MReader::addFactory ( const std::string & synt,
TreePostParser::Factory fact )

◆ aliasFactory()

void sigraph::MReader::aliasFactory ( const std::string & dest,
const std::string & source )

replace factory dest by source (like dest=source)

◆ baseFactorySet()

static TreePostParser::FactorySet sigraph::MReader::baseFactorySet ( )
static

◆ buildConst()

static void sigraph::MReader::buildConst ( carto::AttributedObject * parent,
Tree * ao,
const std::string & filename )
staticprotected

◆ buildLeaf()

static void sigraph::MReader::buildLeaf ( carto::AttributedObject * parent,
Tree * ao,
const std::string & filename )
staticprotected

◆ buildNull()

static void sigraph::MReader::buildNull ( carto::AttributedObject * parent,
Tree * ao,
const std::string & filename )
staticprotected

◆ buildTop()

static void sigraph::MReader::buildTop ( carto::AttributedObject * parent,
Tree * ao,
const std::string & filename )
staticprotected

◆ buildTree()

static void sigraph::MReader::buildTree ( carto::AttributedObject * parent,
Tree * ao,
const std::string & filename )
staticprotected

◆ delete_helpers()

static void sigraph::MReader::delete_helpers ( )
static

◆ factories()

const TreePostParser::FactorySet & sigraph::MReader::factories ( )

◆ helpers()

static carto::AttributedReader::HelperSet & sigraph::MReader::helpers ( )
static

◆ helpers_p()

static carto::AttributedReader::HelperSet *& sigraph::MReader::helpers_p ( )
staticprotected

◆ initHelpers()

static carto::AttributedReader::HelperSet * sigraph::MReader::initHelpers ( )
static

◆ initPythonHelpers()

static carto::PythonReader::HelperSet * sigraph::MReader::initPythonHelpers ( )
static

◆ parse()

virtual void sigraph::MReader::parse ( Tree * ao)
protectedvirtual

Reimplemented from sigraph::ExoticTreeReader.

◆ parseModel()

static void sigraph::MReader::parseModel ( Model * mod,
carto::AttributedObject * parent,
Tree * ao )
staticprotected

◆ python_helpers()

static carto::PythonReader::HelperSet & sigraph::MReader::python_helpers ( )
static

◆ python_helpers_p()

static carto::PythonReader::HelperSet *& sigraph::MReader::python_helpers_p ( )
staticprotected

◆ readModel()

virtual Model * sigraph::MReader::readModel ( )
virtual

◆ setFactories()

void sigraph::MReader::setFactories ( const TreePostParser::FactorySet & fs)

◆ syntax()

static carto::SyntaxSet & sigraph::MReader::syntax ( )
static

◆ syntax_p()

static carto::SyntaxSet *& sigraph::MReader::syntax_p ( )
staticprotected

Member Data Documentation

◆ _isOpen

bool sigraph::MReader::_isOpen
protected

Definition at line 64 of file mReader.h.

◆ _knownElems

TreePostParser::FactorySet sigraph::MReader::_knownElems
protected

Definition at line 63 of file mReader.h.


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