10 #ifndef __SERIALIZABLE_ASCII_FILE_H__
11 #define __SERIALIZABLE_ASCII_FILE_H__
20 #define CHAR_CONT_BEGIN '('
21 #define CHAR_CONT_END ')'
22 #define CHAR_ITEM_BEGIN '{'
23 #define CHAR_ITEM_END '}'
24 #define CHAR_SGSERIAL_BEGIN '['
25 #define CHAR_SGSERIAL_END ']'
26 #define CHAR_STRING_BEGIN CHAR_SGSERIAL_BEGIN
27 #define CHAR_STRING_END CHAR_SGSERIAL_END
28 #define CHAR_SPARSE_BEGIN CHAR_CONT_BEGIN
29 #define CHAR_SPARSE_END CHAR_CONT_END
31 #define CHAR_TYPE_END '\n'
33 #define STR_SGSERIAL_NULL "null"
37 template <
class T>
struct SGSparseVectorEntry;
56 char* dest_version,
size_t n);
58 #ifndef DOXYGEN_SHOULD_SKIP_THIS
59 virtual bool write_scalar_wrapped(
62 virtual bool write_cont_begin_wrapped(
65 virtual bool write_cont_end_wrapped(
69 virtual bool write_string_begin_wrapped(
71 virtual bool write_string_end_wrapped(
74 virtual bool write_stringentry_begin_wrapped(
76 virtual bool write_stringentry_end_wrapped(
79 virtual bool write_sparse_begin_wrapped(
81 virtual bool write_sparse_end_wrapped(
84 virtual bool write_sparseentry_begin_wrapped(
87 virtual bool write_sparseentry_end_wrapped(
91 virtual bool write_item_begin_wrapped(
93 virtual bool write_item_end_wrapped(
96 virtual bool write_sgserializable_begin_wrapped(
97 const TSGDataType* type,
const char* sgserializable_name,
98 EPrimitiveType
generic);
99 virtual bool write_sgserializable_end_wrapped(
100 const TSGDataType* type,
const char* sgserializable_name,
101 EPrimitiveType
generic);
103 virtual bool write_type_begin_wrapped(
106 virtual bool write_type_end_wrapped(
133 return "SerializableAsciiFile";
Datatypes that shogun supports.
Serializable ascii reader.
virtual const char * get_name() const
virtual TSerializableReader * new_reader(char *dest_version, size_t n)
virtual ~CSerializableAsciiFile()
all of classes and functions are contained in the shogun namespace
template class SGSparseVectorEntry