SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  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* length);
56  virtual bool read_sparse_end_wrapped(
57  const TSGDataType* type, index_t length);
58 
59  virtual bool read_sparseentry_begin_wrapped(
60  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
61  index_t* feat_index, index_t y);
62  virtual bool read_sparseentry_end_wrapped(
63  const TSGDataType* type, SGSparseVectorEntry<char>* first_entry,
64  index_t* feat_index, index_t y);
65 
66  virtual bool read_item_begin_wrapped(
67  const TSGDataType* type, index_t y, index_t x);
68  virtual bool read_item_end_wrapped(
69  const TSGDataType* type, index_t y, index_t x);
70 
71  virtual bool read_sgserializable_begin_wrapped(
72  const TSGDataType* type, char* sgserializable_name,
73  EPrimitiveType* generic);
74  virtual bool read_sgserializable_end_wrapped(
75  const TSGDataType* type, const char* sgserializable_name,
76  EPrimitiveType generic);
77 
78  virtual bool read_type_begin_wrapped(
79  const TSGDataType* type, const char* name,
80  const char* prefix);
81  virtual bool read_type_end_wrapped(
82  const TSGDataType* type, const char* name,
83  const char* prefix);
84 };
85 }
86 
87 #endif /* HAVE_XML */
88 #endif /* __SERIALIZABLE_XML_READER_00_H__ */

SHOGUN Machine Learning Toolbox - Documentation