SHOGUN  v2.0.0
 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 
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* length);
60  virtual bool read_sparse_end_wrapped(
61  const TSGDataType* type, index_t length);
62 
63  virtual bool read_sparseentry_begin_wrapped(
64  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
65  index_t* feat_index, index_t y);
66  virtual bool read_sparseentry_end_wrapped(
67  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
68  index_t* feat_index, index_t y);
69 
70  virtual bool read_item_begin_wrapped(
71  const TSGDataType* type, index_t y, index_t x);
72  virtual bool read_item_end_wrapped(
73  const TSGDataType* type, index_t y, index_t x);
74 
75  virtual bool read_sgserializable_begin_wrapped(
76  const TSGDataType* type, char* sgserializable_name,
77  EPrimitiveType* generic);
78  virtual bool read_sgserializable_end_wrapped(
79  const TSGDataType* type, const char* sgserializable_name,
80  EPrimitiveType generic);
81 
82  virtual bool read_type_begin_wrapped(
83  const TSGDataType* type, const char* name,
84  const char* prefix);
85  virtual bool read_type_end_wrapped(
86  const TSGDataType* type, const char* name,
87  const char* prefix);
88 #endif
89 };
90 }
91 
92 #endif /* __SERIALIZABLE_ASCII_READER_00_H__ */

SHOGUN Machine Learning Toolbox - Documentation