brainrat-private 6.0.4
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
21using namespace std;
22using namespace carto;
23
24namespace 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
51
52 private :
53 SyntaxSet _parsersyntaxset;
54 PythonReader::HelperSet _parserreaderhelperset;
55 PythonWriter::HelperSet _parserwriterhelperset;
56 };
57}
58
59#endif
void addReaderHelperSet(PythonReader::HelperSet &readers)
PythonReader::HelperSet & getReaderHelperSet()
PythonWriter::HelperSet & getWriterHelperSet()
static DpyParsers & singleton()
void addWriterHelperSet(PythonWriter::HelperSet &writers)
SyntaxSet & getSyntaxSet()
virtual PythonWriter::HelperSet & getWriterHelperSet()=0
virtual ~ParsersInterface()
Definition dpyparsers.h:29
virtual void addWriterHelperSet(PythonWriter::HelperSet &writers)=0
virtual void addReaderHelperSet(PythonReader::HelperSet &readers)=0
virtual SyntaxSet & getSyntaxSet()=0
virtual PythonReader::HelperSet & getReaderHelperSet()=0
ImageProcessors<AimsRGB, double> p(data, mask, "rgbm", options, ImageProcessorMode::Init); ImageProce...
Definition classes.h:25
STL namespace.