10 #ifndef __STREAMING_ASCIIFILE_H__
11 #define __STREAMING_ASCIIFILE_H__
54 return (atoi(str)!=0);
57 #define GET_VECTOR_DECL(sg_type) \
58 virtual void get_vector \
59 (sg_type*& vector, int32_t& len); \
61 virtual void get_vector_and_label \
62 (sg_type*& vector, int32_t& len, float64_t& label); \
64 virtual void get_string \
65 (sg_type*& vector, int32_t& len); \
67 virtual void get_string_and_label \
68 (sg_type*& vector, int32_t& len, float64_t& label); \
70 virtual void get_sparse_vector \
71 (SGSparseVectorEntry<sg_type>*& vector, int32_t& len); \
73 virtual void get_sparse_vector_and_label \
74 (SGSparseVectorEntry<sg_type>*& vector, int32_t& len, float64_t& label);
89 #undef GET_VECTOR_DECL
94 return "StreamingAsciiFile";
105 template <
class T>
void append_item(
DynArray<T>* items,
char* ptr_data,
char* ptr_item);
111 #endif //__STREAMING_ASCIIFILE_H__
Class StreamingAsciiFile to read vector-by-vector from ASCII files.
virtual ~CStreamingAsciiFile()
Class v_array is a templated class used to store variable length arrays. Memory locations are stored ...
A Streaming File access class.
Template Dynamic array class that creates an array that can be used like a list or an array...
virtual const char * get_name() const
#define GET_VECTOR_DECL(sg_type)
bool str_to_bool(char *str)