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

SHOGUN Machine Learning Toolbox - Documentation