10 #ifndef __STREAMING_ASCIIFILE_H__ 11 #define __STREAMING_ASCIIFILE_H__ 60 return (atoi(str)!=0);
63 #define GET_VECTOR_DECL(sg_type) \ 64 virtual void get_vector \ 65 (sg_type*& vector, int32_t& len); \ 67 virtual void get_vector_and_label \ 68 (sg_type*& vector, int32_t& len, float64_t& label); \ 70 virtual void get_string \ 71 (sg_type*& vector, int32_t& len); \ 73 virtual void get_string_and_label \ 74 (sg_type*& vector, int32_t& len, float64_t& label); \ 76 virtual void get_sparse_vector \ 77 (SGSparseVectorEntry<sg_type>*& vector, int32_t& len); \ 79 virtual void get_sparse_vector_and_label \ 80 (SGSparseVectorEntry<sg_type>*& vector, int32_t& len, float64_t& label); 95 #undef GET_VECTOR_DECL 100 return "StreamingAsciiFile";
111 template <
class T>
void append_item(
DynArray<T>* items,
char* ptr_data,
char* ptr_item);
120 #endif //__STREAMING_ASCIIFILE_H__ Class StreamingAsciiFile to read vector-by-vector from ASCII files.
void set_delimiter(char delimiter)
virtual ~CStreamingAsciiFile()
Class v_array taken directly from JL's implementation
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
all of classes and functions are contained in the shogun namespace
#define GET_VECTOR_DECL(sg_type)
bool str_to_bool(char *str)