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 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* length);
00060 virtual bool read_sparse_end_wrapped(
00061 const TSGDataType* type, index_t length);
00062
00063 virtual bool read_sparseentry_begin_wrapped(
00064 const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
00065 index_t* feat_index, index_t y);
00066 virtual bool read_sparseentry_end_wrapped(
00067 const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
00068 index_t* feat_index, index_t y);
00069
00070 virtual bool read_item_begin_wrapped(
00071 const TSGDataType* type, index_t y, index_t x);
00072 virtual bool read_item_end_wrapped(
00073 const TSGDataType* type, index_t y, index_t x);
00074
00075 virtual bool read_sgserializable_begin_wrapped(
00076 const TSGDataType* type, char* sgserializable_name,
00077 EPrimitiveType* generic);
00078 virtual bool read_sgserializable_end_wrapped(
00079 const TSGDataType* type, const char* sgserializable_name,
00080 EPrimitiveType generic);
00081
00082 virtual bool read_type_begin_wrapped(
00083 const TSGDataType* type, const char* name,
00084 const char* prefix);
00085 virtual bool read_type_end_wrapped(
00086 const TSGDataType* type, const char* name,
00087 const char* prefix);
00088 #endif
00089 };
00090 }
00091
00092 #endif