SiGraph: sulcal graphs


sigraph::ExoticGraphReader Class Referenceabstract

Classe ExoticGraphReader : classe de base de lecture de graphes "exotiques". More...

#include <si/graph/exoticGraphReader.h>

Inheritance diagram for sigraph::ExoticGraphReader:
Collaboration diagram for sigraph::ExoticGraphReader:

Public Member Functions

 ExoticGraphReader (const std::string &filename, const carto::SyntaxSet &attr)
 
 ExoticGraphReader (const carto::SyntaxSet &attr)
 
virtual ~ExoticGraphReader ()
 
- Public Member Functions inherited from GraphReader
 GraphReader (const std::string &filename, const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
 GraphReader (const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
virtual ~GraphReader ()
 
void open (const std::string &filename) __attribute__((__deprecated__("use attach() instead")))
 
void close ()
 
void attach (std::istream &s, int line_num=1)
 
void attach (carto::rc_ptr< carto::DataSource > ds)
 
void attach (const std::string &filename)
 
virtual std::string name () const
 
int line () const
 
bool operator! () const
 
bool is_open () const
 
bool eof () const
 
carto::rc_ptr< carto::DataSource > dataSource ()
 
const carto::rc_ptr< carto::DataSource > dataSource () const
 
const carto::SyntaxSetsyntaxSet () const
 
void setSyntax (const carto::SyntaxSet &syntax)
 
 GraphReader (const std::string &filename, const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
 GraphReader (const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
 
virtual ~GraphReader ()
 
void open (const std::string &filename) __attribute__((__deprecated__("use attach() instead")))
 
void close ()
 
void attach (std::istream &s, int line_num=1)
 
void attach (carto::rc_ptr< carto::DataSource > ds)
 
void attach (const std::string &filename)
 
virtual std::string name () const
 
int line () const
 
bool operator! () const
 
bool is_open () const
 
bool eof () const
 
carto::rc_ptr< carto::DataSource > dataSource ()
 
const carto::rc_ptr< carto::DataSource > dataSource () const
 
const carto::SyntaxSetsyntaxSet () const
 
void setSyntax (const carto::SyntaxSet &syntax)
 

Static Public Member Functions

static carto::SyntaxSet initSyntax (const std::string &filename)
 

Protected Member Functions

virtual void read (Graph &gr)
 
virtual void parse (Graph &sg, carto::AttributedObject *go)=0
 
virtual void parse (Graph &sg, Vertex *go)
 
virtual void parse (Graph &sg, Edge *go)
 
virtual void parse (Graph &sg, Graph *go)
 

Detailed Description

Classe ExoticGraphReader : classe de base de lecture de graphes "exotiques".

Cette structure de base permet d'encapsuler la lecture d'un graphe, avec une étape de post-processing au cours de laquelle les éléments du graphe sont scrutés et éventuellement complétés

Definition at line 32 of file exoticGraphReader.h.

Constructor & Destructor Documentation

◆ ExoticGraphReader() [1/2]

sigraph::ExoticGraphReader::ExoticGraphReader ( const std::string & filename,
const carto::SyntaxSet & attr )

◆ ExoticGraphReader() [2/2]

sigraph::ExoticGraphReader::ExoticGraphReader ( const carto::SyntaxSet & attr)

◆ ~ExoticGraphReader()

virtual sigraph::ExoticGraphReader::~ExoticGraphReader ( )
virtual

Member Function Documentation

◆ initSyntax()

static carto::SyntaxSet sigraph::ExoticGraphReader::initSyntax ( const std::string & filename)
static

◆ parse() [1/4]

virtual void sigraph::ExoticGraphReader::parse ( Graph & sg,
carto::AttributedObject * go )
protectedpure virtual

Implemented in sigraph::FoldReader, and sigraph::FrgReader.

Referenced by parse(), parse(), and parse().

◆ parse() [2/4]

void sigraph::ExoticGraphReader::parse ( Graph & sg,
Edge * go )
inlineprotectedvirtual

Definition at line 60 of file exoticGraphReader.h.

References parse().

◆ parse() [3/4]

void sigraph::ExoticGraphReader::parse ( Graph & sg,
Graph * go )
inlineprotectedvirtual

Reimplemented in sigraph::FrgReader.

Definition at line 66 of file exoticGraphReader.h.

References parse().

◆ parse() [4/4]

void sigraph::ExoticGraphReader::parse ( Graph & sg,
Vertex * go )
inlineprotectedvirtual

Definition at line 54 of file exoticGraphReader.h.

References parse().

◆ read()

virtual void sigraph::ExoticGraphReader::read ( Graph & gr)
protectedvirtual

Reimplemented from GraphReader.


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