SiGraph: sulcal graphs


domReader.h
Go to the documentation of this file.
1
2#ifndef SI_DOMAIN_DOMREADER_H
3#define SI_DOMAIN_DOMREADER_H
4
5
6#include <si/domain/domain.h>
8
9
10namespace sigraph
11{
12
16 {
17 public:
18 typedef void (*BuildFunc)( Tree* parent, Tree* tr );
19
20 DomReader( const std::string & filename );
21 virtual ~DomReader();
22 virtual Domain* readDom();
23 static void registerBuilder( const std::string syntax, BuildFunc builder )
24 { builders()[ syntax ] = builder; }
25
27
28 protected:
29 virtual void parse( Tree* ao );
30
31 static void buildNull( Tree* parent, Tree* ao );
32 static std::map<std::string, BuildFunc> & builders();
33
34 private:
35 };
36
37}
38
39#endif
40
static void buildNull(Tree *parent, Tree *ao)
static std::map< std::string, BuildFunc > & builders()
virtual void parse(Tree *ao)
void(* BuildFunc)(Tree *parent, Tree *tr)
Definition domReader.h:18
virtual ~DomReader()
static carto::SyntaxSet & syntax()
static void registerBuilder(const std::string syntax, BuildFunc builder)
Definition domReader.h:23
virtual Domain * readDom()
DomReader(const std::string &filename)
Domaine de validité.
Definition domain.h:18
ExoticTreeReader(const std::string &filename, const carto::SyntaxSet &attr, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
std::map< std::string, Syntax > SyntaxSet