SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 
13 #include <shogun/lib/config.h>
14 
16 
17 namespace shogun
18 {
19 class CSerializableAsciiFile;
20 template <class T> struct SGSparseVectorEntry;
21 
25 
26  CSerializableAsciiFile* m_file;
27 
28 public:
33 
36 
38  virtual const char* get_name() const {
39  return "SerializableAsciiReader00";
40  }
41 
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
43  virtual bool read_scalar_wrapped(
44  const TSGDataType* type, void* param);
45 
46  virtual bool read_cont_begin_wrapped(
47  const TSGDataType* type, index_t* len_read_y,
48  index_t* len_read_x);
49  virtual bool read_cont_end_wrapped(
50  const TSGDataType* type, index_t len_read_y,
51  index_t len_read_x);
52 
53  virtual bool read_string_begin_wrapped(
54  const TSGDataType* type, index_t* length);
55  virtual bool read_string_end_wrapped(
56  const TSGDataType* type, index_t length);
57 
58  virtual bool read_stringentry_begin_wrapped(
59  const TSGDataType* type, index_t y);
60  virtual bool read_stringentry_end_wrapped(
61  const TSGDataType* type, index_t y);
62 
63  virtual bool read_sparse_begin_wrapped(
64  const TSGDataType* type, index_t* length);
65  virtual bool read_sparse_end_wrapped(
66  const TSGDataType* type, index_t length);
67 
68  virtual bool read_sparseentry_begin_wrapped(
69  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
70  index_t* feat_index, index_t y);
71  virtual bool read_sparseentry_end_wrapped(
72  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
73  index_t* feat_index, index_t y);
74 
75  virtual bool read_item_begin_wrapped(
76  const TSGDataType* type, index_t y, index_t x);
77  virtual bool read_item_end_wrapped(
78  const TSGDataType* type, index_t y, index_t x);
79 
80  virtual bool read_sgserializable_begin_wrapped(
81  const TSGDataType* type, char* sgserializable_name,
82  EPrimitiveType* generic);
83  virtual bool read_sgserializable_end_wrapped(
84  const TSGDataType* type, const char* sgserializable_name,
85  EPrimitiveType generic);
86 
87  virtual bool read_type_begin_wrapped(
88  const TSGDataType* type, const char* name,
89  const char* prefix);
90  virtual bool read_type_end_wrapped(
91  const TSGDataType* type, const char* name,
92  const char* prefix);
93 #endif
94 };
95 }
96 
97 #endif /* __SERIALIZABLE_ASCII_READER_00_H__ */

SHOGUN Machine Learning Toolbox - Documentation