30 #define GET_VECTOR(fname, conv, sg_type) \
31 void CStreamingFile::get_vector \
32 (sg_type*& vector, int32_t& num_feat) \
36 SG_ERROR("Read function not supported by the feature type!") \
55 #define GET_VECTOR_AND_LABEL(fname, conv, sg_type) \
56 void CStreamingFile::get_vector_and_label \
57 (sg_type*& vector, int32_t& num_feat, float64_t& label) \
61 SG_ERROR("Read function not supported by the feature type!") \
77 #undef GET_VECTOR_AND_LABEL
80 #define GET_STRING(fname, conv, sg_type) \
81 void CStreamingFile::get_string \
82 (sg_type*& vector, int32_t& num_feat) \
86 SG_ERROR("Read function not supported by the feature type!") \
105 #define GET_STRING_AND_LABEL(fname, conv, sg_type) \
106 void CStreamingFile::get_string_and_label \
107 (sg_type*& vector, int32_t& num_feat, float64_t& label) \
111 SG_ERROR("Read function not supported by the feature type!") \
127 #undef GET_STRING_AND_LABEL
130 #define GET_SPARSE_VECTOR(fname, conv, sg_type) \
132 void CStreamingFile::get_sparse_vector \
133 (SGSparseVectorEntry<sg_type>*& vector, int32_t& num_feat) \
137 SG_ERROR("Read function not supported by the feature type!") \
153 #undef GET_SPARSE_VECTOR
156 #define GET_SPARSE_VECTOR_AND_LABEL(fname, conv, sg_type) \
158 void CStreamingFile::get_sparse_vector_and_label \
159 (SGSparseVectorEntry<sg_type>*& vector, \
165 SG_ERROR("Read function not supported by the feature type!") \
181 #undef GET_SPARSE_VECTOR_AND_LABEL
185 SG_ERROR(
"Read function not supported by the feature type!\n")
190 SG_ERROR(
"Read function not supported by the feature type!\n")
194 using namespace shogun;
222 int file = open((
const char*)
filename, mode);
230 SG_ERROR(
"Error getting the file name!\n")