11 #ifndef BRAINRAT_PLUGINS_BIODPY_LIB_IO_DPYREADER_H
12 #define BRAINRAT_PLUGINS_BIODPY_LIB_IO_DPYREADER_H
15 #include <cartobase/stream/fileutil.h>
16 #include <cartobase/object/object_d.h>
17 #include <cartobase/object/pythonreader.h>
19 #include <soma-io/io/formatdictionary_d.h>
20 #include <soma-io/io/reader_d.h>
21 #include <aims/io/reader_d.h>
27 using namespace carto;
40 void read(
DpyData& thing, Object options );
51 Object::value( PropertySet() ) );
64 catch( exception & e )
70 string dir = FileUtil::dirname( _name );
72 dir += FileUtil::separator();
74 vector<string> files = hdr->inputFilenames();
77 if ( files.size() > 0 ) {
78 DpyParsers & parsers = DpyParsers::singleton();
81 PythonReader datareader( dir + files[0], rules, helpers );
82 data.reset( datareader.read() );
88 if( hdr->hasProperty(
"filenames" ) )
89 hdr->removeProperty(
"filenames" );
The data class of the dpy format.
void setHeader(DpyHeader &header)
void setContent(Object &content)
PythonReader::HelperSet & getReaderHelperSet()
SyntaxSet & getSyntaxSet()
void read(DpyData &thing, Object options)
DpyReader(const string &name)
AIMS_INSTANTIATE_READER(bio::DpyData)
ImageProcessors<AimsRGB, double> p(data, mask, "rgbm", options, ImageProcessorMode::Init); ImageProce...
DpyReader & operator>>(DpyReader &reader, DpyData &thing)