SerializableAsciiReader00.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_ASCII_READER_00_H__
00011 #define __SERIALIZABLE_ASCII_READER_00_H__
00012 
00013 #include "lib/SerializableAsciiFile.h"
00014 
00015 namespace shogun
00016 {
00017 class SerializableAsciiReader00
00018     :public CSerializableFile::TSerializableReader {
00019     CSerializableAsciiFile* m_file;
00020 
00021 public:
00022     explicit SerializableAsciiReader00(CSerializableAsciiFile* file);
00023     virtual ~SerializableAsciiReader00(void);
00024 
00026     inline virtual const char* get_name(void) const {
00027         return "SerializableAsciiReader00";
00028     }
00029 
00030     virtual bool read_scalar_wrapped(
00031         const TSGDataType* type, void* param);
00032 
00033     virtual bool read_cont_begin_wrapped(
00034         const TSGDataType* type, index_t* len_read_y,
00035         index_t* len_read_x);
00036     virtual bool read_cont_end_wrapped(
00037         const TSGDataType* type, index_t len_read_y,
00038         index_t len_read_x);
00039 
00040     virtual bool read_string_begin_wrapped(
00041         const TSGDataType* type, index_t* length);
00042     virtual bool read_string_end_wrapped(
00043         const TSGDataType* type, index_t length);
00044 
00045     virtual bool read_stringentry_begin_wrapped(
00046         const TSGDataType* type, index_t y);
00047     virtual bool read_stringentry_end_wrapped(
00048         const TSGDataType* type, index_t y);
00049 
00050     virtual bool read_sparse_begin_wrapped(
00051         const TSGDataType* type, index_t* vec_index,
00052         index_t* length);
00053     virtual bool read_sparse_end_wrapped(
00054         const TSGDataType* type, index_t* vec_index,
00055         index_t length);
00056 
00057     virtual bool read_sparseentry_begin_wrapped(
00058         const TSGDataType* type, TSparseEntry<char>* first_entry,
00059         index_t* feat_index, index_t y);
00060     virtual bool read_sparseentry_end_wrapped(
00061         const TSGDataType* type, TSparseEntry<char>* first_entry,
00062         index_t* feat_index, index_t y);
00063 
00064     virtual bool read_item_begin_wrapped(
00065         const TSGDataType* type, index_t y, index_t x);
00066     virtual bool read_item_end_wrapped(
00067         const TSGDataType* type, index_t y, index_t x);
00068 
00069     virtual bool read_sgserializable_begin_wrapped(
00070         const TSGDataType* type, char* sgserializable_name,
00071         EPrimitiveType* generic);
00072     virtual bool read_sgserializable_end_wrapped(
00073         const TSGDataType* type, const char* sgserializable_name,
00074         EPrimitiveType generic);
00075 
00076     virtual bool read_type_begin_wrapped(
00077         const TSGDataType* type, const char* name,
00078         const char* prefix);
00079     virtual bool read_type_end_wrapped(
00080         const TSGDataType* type, const char* name,
00081         const char* prefix);
00082 };
00083 }
00084 
00085 #endif /* __SERIALIZABLE_ASCII_READER_00_H__  */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation