SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SerializableXmlReader00.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_XML_READER_00_H__
11 #define __SERIALIZABLE_XML_READER_00_H__
12 
13 #include <shogun/lib/config.h>
14 #ifdef HAVE_XML
15 
17 
18 namespace shogun
19 {
20 #define IGNORE_IN_CLASSLIST
21 IGNORE_IN_CLASSLIST class SerializableXmlReader00
22  :public CSerializableFile::TSerializableReader {
23  CSerializableXmlFile* m_file;
24 
25 public:
26  explicit SerializableXmlReader00(CSerializableXmlFile* file);
27  virtual ~SerializableXmlReader00();
28 
30  inline virtual const char* get_name() const {
31  return "SerializableXmlReader00";
32  }
33 
34  virtual bool read_scalar_wrapped(
35  const TSGDataType* type, void* param);
36 
37  virtual bool read_cont_begin_wrapped(
38  const TSGDataType* type, index_t* len_read_y,
39  index_t* len_read_x);
40  virtual bool read_cont_end_wrapped(
41  const TSGDataType* type, index_t len_read_y,
42  index_t len_read_x);
43 
44  virtual bool read_string_begin_wrapped(
45  const TSGDataType* type, index_t* length);
46  virtual bool read_string_end_wrapped(
47  const TSGDataType* type, index_t length);
48 
49  virtual bool read_stringentry_begin_wrapped(
50  const TSGDataType* type, index_t y);
51  virtual bool read_stringentry_end_wrapped(
52  const TSGDataType* type, index_t y);
53 
54  virtual bool read_sparse_begin_wrapped(
55  const TSGDataType* type, index_t* vec_index,
56  index_t* length);
57  virtual bool read_sparse_end_wrapped(
58  const TSGDataType* type, index_t* vec_index,
59  index_t length);
60 
61  virtual bool read_sparseentry_begin_wrapped(
62  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
63  index_t* feat_index, index_t y);
64  virtual bool read_sparseentry_end_wrapped(
65  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
66  index_t* feat_index, index_t y);
67 
68  virtual bool read_item_begin_wrapped(
69  const TSGDataType* type, index_t y, index_t x);
70  virtual bool read_item_end_wrapped(
71  const TSGDataType* type, index_t y, index_t x);
72 
73  virtual bool read_sgserializable_begin_wrapped(
74  const TSGDataType* type, char* sgserializable_name,
75  EPrimitiveType* generic);
76  virtual bool read_sgserializable_end_wrapped(
77  const TSGDataType* type, const char* sgserializable_name,
78  EPrimitiveType generic);
79 
80  virtual bool read_type_begin_wrapped(
81  const TSGDataType* type, const char* name,
82  const char* prefix);
83  virtual bool read_type_end_wrapped(
84  const TSGDataType* type, const char* name,
85  const char* prefix);
86 };
87 }
88 
89 #endif /* HAVE_XML */
90 #endif /* __SERIALIZABLE_XML_READER_00_H__ */

SHOGUN Machine Learning Toolbox - Documentation