SiGraph: sulcal graphs


exoticTreeWriter.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1998-2004 CEA
3 *
4 * This software and supporting documentation were developed by
5 * CEA/DSV/SHFJ
6 * 4 place du General Leclerc
7 * 91401 Orsay cedex
8 * France
9 *
10 */
11
12#ifndef SI_GRAPH_EXOTICTREEWRITER_H
13#define SI_GRAPH_EXOTICTREEWRITER_H
14
15
16#include <cartobase/object/attributed.h>
17#include <graph/tree/twriter.h>
18#include <graph/tree/tree.h>
19
20
21namespace sigraph
22{
23
27 {
28 public:
29 ExoticTreeWriter( const std::string & filename,
30 const carto::SyntaxSet & attr, bool makedir = false );
32
33 protected:
34 virtual void writeTree( const Tree* tree, const std::string & type );
35 virtual void parse( const carto::AttributedObject* ) {};
36 virtual void parseTree( const Tree* ao );
37
38 private:
39 };
40
41
43 operator << ( ExoticTreeWriter & tw, const Tree & tr )
44 { tr.const_accept( tw ); return( tw ); }
45
46}
47
48#endif
49
50
TreeWriter(const std::string &filename, const carto::SyntaxSet &syntax, const HelperSet &helpers=HelperSet())
virtual void const_accept(ConstTreeVisitor &visitor) const
Classe ExoticTreeWriter : écriture d'arbres "exotiques".
virtual void writeTree(const Tree *tree, const std::string &type)
virtual void parse(const carto::AttributedObject *)
ExoticTreeWriter(const std::string &filename, const carto::SyntaxSet &attr, bool makedir=false)
virtual void parseTree(const Tree *ao)
SyntaxedObject< PropertySet > AttributedObject
std::map< std::string, Syntax > SyntaxSet
DomWriter & operator<<(DomWriter &dw, const Domain &dom)
Definition domWriter.h:30