SHOGUN
v3.2.0
Main Page
Modules
Classes
Files
File List
File Members
src
shogun
io
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/io/SerializableAsciiFile.h
>
14
15
namespace
shogun
16
{
18
class
SerializableAsciiReader00
19
:
public
CSerializableFile::TSerializableReader
{
20
21
CSerializableAsciiFile
* m_file;
22
23
public
:
27
explicit
SerializableAsciiReader00
(
CSerializableAsciiFile
* file);
28
30
virtual
~SerializableAsciiReader00
();
31
33
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__ */
index_t
int32_t index_t
Definition:
common.h:60
shogun::CSerializableFile::TSerializableReader
serializable reader
Definition:
SerializableFile.h:29
shogun::SerializableAsciiReader00::get_name
virtual const char * get_name() const
Definition:
SerializableAsciiReader00.h:33
SerializableAsciiFile.h
shogun::TSGDataType
Datatypes that shogun supports.
Definition:
DataType.h:67
shogun::SerializableAsciiReader00
Serializable ascii reader.
Definition:
SerializableAsciiReader00.h:18
shogun::SerializableAsciiReader00::SerializableAsciiReader00
SerializableAsciiReader00(CSerializableAsciiFile *file)
Definition:
SerializableAsciiReader00.cpp:16
shogun::CSerializableAsciiFile
serializable ascii file
Definition:
SerializableAsciiFile.h:34
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:16
shogun::SGSparseVectorEntry
template class SGSparseVectorEntry
Definition:
File.h:23
shogun::SerializableAsciiReader00::~SerializableAsciiReader00
virtual ~SerializableAsciiReader00()
Definition:
SerializableAsciiReader00.cpp:19
SHOGUN
Machine Learning Toolbox - Documentation