Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __SERIALIZABLE_ASCII_READER_00_H__
00011 #define __SERIALIZABLE_ASCII_READER_00_H__
00012
00013 #include <shogun/io/SerializableAsciiFile.h>
00014
00015 namespace shogun
00016 {
00018 class SerializableAsciiReader00
00019 : public CSerializableFile::TSerializableReader {
00020
00021 CSerializableAsciiFile* m_file;
00022
00023 public:
00027 explicit SerializableAsciiReader00(CSerializableAsciiFile* file);
00028
00030 virtual ~SerializableAsciiReader00();
00031
00033 inline virtual const char* get_name() const {
00034 return "SerializableAsciiReader00";
00035 }
00036
00037 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00038 virtual bool read_scalar_wrapped(
00039 const TSGDataType* type, void* param);
00040
00041 virtual bool read_cont_begin_wrapped(
00042 const TSGDataType* type, index_t* len_read_y,
00043 index_t* len_read_x);
00044 virtual bool read_cont_end_wrapped(
00045 const TSGDataType* type, index_t len_read_y,
00046 index_t len_read_x);
00047
00048 virtual bool read_string_begin_wrapped(
00049 const TSGDataType* type, index_t* length);
00050 virtual bool read_string_end_wrapped(
00051 const TSGDataType* type, index_t length);
00052
00053 virtual bool read_stringentry_begin_wrapped(
00054 const TSGDataType* type, index_t y);
00055 virtual bool read_stringentry_end_wrapped(
00056 const TSGDataType* type, index_t y);
00057
00058 virtual bool read_sparse_begin_wrapped(
00059 const TSGDataType* type, index_t* vec_index,
00060 index_t* length);
00061 virtual bool read_sparse_end_wrapped(
00062 const TSGDataType* type, index_t* vec_index,
00063 index_t length);
00064
00065 virtual bool read_sparseentry_begin_wrapped(
00066 const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
00067 index_t* feat_index, index_t y);
00068 virtual bool read_sparseentry_end_wrapped(
00069 const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
00070 index_t* feat_index, index_t y);
00071
00072 virtual bool read_item_begin_wrapped(
00073 const TSGDataType* type, index_t y, index_t x);
00074 virtual bool read_item_end_wrapped(
00075 const TSGDataType* type, index_t y, index_t x);
00076
00077 virtual bool read_sgserializable_begin_wrapped(
00078 const TSGDataType* type, char* sgserializable_name,
00079 EPrimitiveType* generic);
00080 virtual bool read_sgserializable_end_wrapped(
00081 const TSGDataType* type, const char* sgserializable_name,
00082 EPrimitiveType generic);
00083
00084 virtual bool read_type_begin_wrapped(
00085 const TSGDataType* type, const char* name,
00086 const char* prefix);
00087 virtual bool read_type_end_wrapped(
00088 const TSGDataType* type, const char* name,
00089 const char* prefix);
00090 #endif
00091 };
00092 }
00093
00094 #endif