Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
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
00088 #endif