2#ifndef SI_MODEL_MREADER_H
3#define SI_MODEL_MREADER_H
6#include <cartobase/object/pythonreader.h>
22 const carto::AttributedReader::HelperSet& helpers_ =
helpers());
25 const carto::AttributedReader::HelperSet& helpers_ =
helpers());
34 void aliasFactory(
const std::string & dest,
const std::string & source );
42 static carto::AttributedReader::HelperSet &
helpers();
48 const std::string & filename );
50 const std::string & filename );
52 const std::string & filename );
54 const std::string & filename );
56 const std::string & filename );
60 static carto::AttributedReader::HelperSet *&
helpers_p();
ExoticTreeReader(const std::string &filename, const carto::SyntaxSet &attr, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
void setFactories(const TreePostParser::FactorySet &fs)
static void buildTree(carto::AttributedObject *parent, Tree *ao, const std::string &filename)
static TreePostParser::FactorySet baseFactorySet()
virtual void parse(Tree *ao)
void addFactories(const TreePostParser::FactorySet &fs)
static void parseModel(Model *mod, carto::AttributedObject *parent, Tree *ao)
static carto::PythonReader::HelperSet & python_helpers()
void aliasFactory(const std::string &dest, const std::string &source)
replace factory dest by source (like dest=source)
TreePostParser::FactorySet _knownElems
static carto::AttributedReader::HelperSet *& helpers_p()
const TreePostParser::FactorySet & factories()
static void buildConst(carto::AttributedObject *parent, Tree *ao, const std::string &filename)
static carto::PythonReader::HelperSet *& python_helpers_p()
static carto::SyntaxSet & syntax()
static void buildNull(carto::AttributedObject *parent, Tree *ao, const std::string &filename)
static carto::AttributedReader::HelperSet & helpers()
static carto::AttributedReader::HelperSet * initHelpers()
virtual Model * readModel()
static void buildTop(carto::AttributedObject *parent, Tree *ao, const std::string &filename)
static void buildLeaf(carto::AttributedObject *parent, Tree *ao, const std::string &filename)
MReader(const TreePostParser::FactorySet &fs=baseFactorySet(), const carto::SyntaxSet &synt=syntax(), const carto::AttributedReader::HelperSet &helpers_=helpers())
static void delete_helpers()
MReader(const std::string &filename, const TreePostParser::FactorySet &fs=baseFactorySet(), const carto::SyntaxSet &synt=syntax(), const carto::AttributedReader::HelperSet &helpers_=helpers())
static carto::PythonReader::HelperSet * initPythonHelpers()
static carto::SyntaxSet *& syntax_p()
void addFactory(const std::string &synt, TreePostParser::Factory fact)
Modèle pour l'évaluation de cliques de graphes (classe abstraite).
std::map< std::string, Factory > FactorySet
syntax -> reader
void(* Factory)(carto::AttributedObject *parent, Tree *t, const std::string &filename)
Elements readers (depending on syntax)
SyntaxedObject< PropertySet > AttributedObject
std::map< std::string, Syntax > SyntaxSet