brainrat-private  5.1.2
dpyparsers.h
Go to the documentation of this file.
1 /* Copyright (C) 2000-2013 CEA
2  *
3  * This software and supporting documentation were developed by
4  * bioPICSEL
5  * CEA/DSV/I²BM/MIRCen/LMN, Batiment 61,
6  * 18, route du Panorama
7  * 92265 Fontenay-aux-Roses
8  * France
9  */
10 
11 #ifndef BRAINRAT_PLUGINS_BIODPY_LIB_IO_PARSERHELPER_H
12 #define BRAINRAT_PLUGINS_BIODPY_LIB_IO_PARSERHELPER_H
13 
14 #include <string>
15 #include <map>
16 
17 #include <cartobase/object/syntax.h>
18 #include <cartobase/object/pythonreader.h>
19 #include <cartobase/object/pythonwriter.h>
20 
21 using namespace std;
22 using namespace carto;
23 
24 namespace bio
25 {
27  {
28  public :
29  virtual ~ParsersInterface(){};
30  virtual void addReaderHelperSet( PythonReader::HelperSet & readers ) = 0;
31  virtual void addWriterHelperSet( PythonWriter::HelperSet & writers ) = 0;
32 
33  virtual SyntaxSet & getSyntaxSet() = 0;
34  virtual PythonReader::HelperSet & getReaderHelperSet() = 0;
35  virtual PythonWriter::HelperSet & getWriterHelperSet() = 0;
36  };
37 
38  class DpyParsers : public virtual ParsersInterface
39  {
40  public :
42 
43  void addReaderHelperSet( PythonReader::HelperSet & readers );
44  void addWriterHelperSet( PythonWriter::HelperSet & writers );
45 
46  SyntaxSet & getSyntaxSet();
47  PythonReader::HelperSet & getReaderHelperSet();
48  PythonWriter::HelperSet & getWriterHelperSet();
49 
50  static DpyParsers & singleton();
51 
52  private :
53  SyntaxSet _parsersyntaxset;
54  PythonReader::HelperSet _parserreaderhelperset;
55  PythonWriter::HelperSet _parserwriterhelperset;
56  };
57 }
58 
59 #endif
void addReaderHelperSet(PythonReader::HelperSet &readers)
PythonWriter::HelperSet & getWriterHelperSet()
static DpyParsers & singleton()
void addWriterHelperSet(PythonWriter::HelperSet &writers)
PythonReader::HelperSet & getReaderHelperSet()
SyntaxSet & getSyntaxSet()
virtual ~ParsersInterface()
Definition: dpyparsers.h:29
virtual PythonReader::HelperSet & getReaderHelperSet()=0
virtual void addWriterHelperSet(PythonWriter::HelperSet &writers)=0
virtual SyntaxSet & getSyntaxSet()=0
virtual PythonWriter::HelperSet & getWriterHelperSet()=0
virtual void addReaderHelperSet(PythonReader::HelperSet &readers)=0
ImageProcessors<AimsRGB, double> p(data, mask, "rgbm", options, ImageProcessorMode::Init); ImageProce...
Definition: classes.h:25