SerializableHdf5Reader00.h

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2010 Soeren Sonnenburg
00008  * Copyright (C) 2010 Berlin Institute of Technology
00009  */
00010 #ifndef __SERIALIZABLE_HDF5_READER_00_H__
00011 #define __SERIALIZABLE_HDF5_READER_00_H__
00012 
00013 #include <shogun/lib/config.h>
00014 #ifdef HAVE_HDF5
00015 
00016 #include <shogun/io/SerializableHdf5File.h>
00017 
00018 namespace shogun
00019 {
00020 #define IGNORE_IN_CLASSLIST
00021 IGNORE_IN_CLASSLIST class SerializableHdf5Reader00
00022     :public CSerializableFile::TSerializableReader {
00023     CSerializableHdf5File* m_file;
00024 
00025 public:
00026     explicit SerializableHdf5Reader00(CSerializableHdf5File* file);
00027     virtual ~SerializableHdf5Reader00();
00028 
00030     virtual const char* get_name() const {
00031         return "SerializableHdf5Reader00";
00032     }
00033 
00034     virtual bool read_scalar_wrapped(
00035         const TSGDataType* type, void* param);
00036 
00037     virtual bool read_cont_begin_wrapped(
00038         const TSGDataType* type, index_t* len_read_y,
00039         index_t* len_read_x);
00040     virtual bool read_cont_end_wrapped(
00041         const TSGDataType* type, index_t len_read_y,
00042         index_t len_read_x);
00043 
00044     virtual bool read_string_begin_wrapped(
00045         const TSGDataType* type, index_t* length);
00046     virtual bool read_string_end_wrapped(
00047         const TSGDataType* type, index_t length);
00048 
00049     virtual bool read_stringentry_begin_wrapped(
00050         const TSGDataType* type, index_t y);
00051     virtual bool read_stringentry_end_wrapped(
00052         const TSGDataType* type, index_t y);
00053 
00054     virtual bool read_sparse_begin_wrapped(
00055         const TSGDataType* type, index_t* length);
00056     virtual bool read_sparse_end_wrapped(
00057         const TSGDataType* type, index_t length);
00058 
00059     virtual bool read_sparseentry_begin_wrapped(
00060         const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
00061         index_t* feat_index, index_t y);
00062     virtual bool read_sparseentry_end_wrapped(
00063         const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
00064         index_t* feat_index, index_t y);
00065 
00066     virtual bool read_item_begin_wrapped(
00067         const TSGDataType* type, index_t y, index_t x);
00068     virtual bool read_item_end_wrapped(
00069         const TSGDataType* type, index_t y, index_t x);
00070 
00071     virtual bool read_sgserializable_begin_wrapped(
00072         const TSGDataType* type, char* sgserializable_name,
00073         EPrimitiveType* generic);
00074     virtual bool read_sgserializable_end_wrapped(
00075         const TSGDataType* type, const char* sgserializable_name,
00076         EPrimitiveType generic);
00077 
00078     virtual bool read_type_begin_wrapped(
00079         const TSGDataType* type, const char* name,
00080         const char* prefix);
00081     virtual bool read_type_end_wrapped(
00082         const TSGDataType* type, const char* name,
00083         const char* prefix);
00084 };
00085 }
00086 
00087 #endif /* HAVE_HDF5  */
00088 #endif /* __SERIALIZABLE_HDF5_READER_00_H__  */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation