SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SerializableAsciiReader00.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2010 Soeren Sonnenburg
8  * Copyright (C) 2010 Berlin Institute of Technology
9  */
10 #ifndef __SERIALIZABLE_ASCII_READER_00_H__
11 #define __SERIALIZABLE_ASCII_READER_00_H__
12 
14 
15 namespace shogun
16 {
20 
21  CSerializableAsciiFile* m_file;
22 
23 public:
28 
31 
33  inline virtual const char* get_name() const {
34  return "SerializableAsciiReader00";
35  }
36 
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38  virtual bool read_scalar_wrapped(
39  const TSGDataType* type, void* param);
40 
41  virtual bool read_cont_begin_wrapped(
42  const TSGDataType* type, index_t* len_read_y,
43  index_t* len_read_x);
44  virtual bool read_cont_end_wrapped(
45  const TSGDataType* type, index_t len_read_y,
46  index_t len_read_x);
47 
48  virtual bool read_string_begin_wrapped(
49  const TSGDataType* type, index_t* length);
50  virtual bool read_string_end_wrapped(
51  const TSGDataType* type, index_t length);
52 
53  virtual bool read_stringentry_begin_wrapped(
54  const TSGDataType* type, index_t y);
55  virtual bool read_stringentry_end_wrapped(
56  const TSGDataType* type, index_t y);
57 
58  virtual bool read_sparse_begin_wrapped(
59  const TSGDataType* type, index_t* vec_index,
60  index_t* length);
61  virtual bool read_sparse_end_wrapped(
62  const TSGDataType* type, index_t* vec_index,
63  index_t length);
64 
65  virtual bool read_sparseentry_begin_wrapped(
66  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
67  index_t* feat_index, index_t y);
68  virtual bool read_sparseentry_end_wrapped(
69  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
70  index_t* feat_index, index_t y);
71 
72  virtual bool read_item_begin_wrapped(
73  const TSGDataType* type, index_t y, index_t x);
74  virtual bool read_item_end_wrapped(
75  const TSGDataType* type, index_t y, index_t x);
76 
77  virtual bool read_sgserializable_begin_wrapped(
78  const TSGDataType* type, char* sgserializable_name,
79  EPrimitiveType* generic);
80  virtual bool read_sgserializable_end_wrapped(
81  const TSGDataType* type, const char* sgserializable_name,
82  EPrimitiveType generic);
83 
84  virtual bool read_type_begin_wrapped(
85  const TSGDataType* type, const char* name,
86  const char* prefix);
87  virtual bool read_type_end_wrapped(
88  const TSGDataType* type, const char* name,
89  const char* prefix);
90 #endif
91 };
92 }
93 
94 #endif /* __SERIALIZABLE_ASCII_READER_00_H__ */

SHOGUN Machine Learning Toolbox - Documentation