29 #define GET_VECTOR(fname, conv, sg_type) \
30 void CStreamingFile::get_vector \
31 (sg_type*& vector, int32_t& num_feat) \
35 SG_ERROR("Read function not supported by the feature type!"); \
54 #define GET_VECTOR_AND_LABEL(fname, conv, sg_type) \
55 void CStreamingFile::get_vector_and_label \
56 (sg_type*& vector, int32_t& num_feat, float64_t& label) \
60 SG_ERROR("Read function not supported by the feature type!"); \
76 #undef GET_VECTOR_AND_LABEL
79 #define GET_STRING(fname, conv, sg_type) \
80 void CStreamingFile::get_string \
81 (sg_type*& vector, int32_t& num_feat) \
85 SG_ERROR("Read function not supported by the feature type!"); \
104 #define GET_STRING_AND_LABEL(fname, conv, sg_type) \
105 void CStreamingFile::get_string_and_label \
106 (sg_type*& vector, int32_t& num_feat, float64_t& label) \
110 SG_ERROR("Read function not supported by the feature type!"); \
126 #undef GET_STRING_AND_LABEL
129 #define GET_SPARSE_VECTOR(fname, conv, sg_type) \
131 void CStreamingFile::get_sparse_vector \
132 (SGSparseVectorEntry<sg_type>*& vector, int32_t& num_feat) \
136 SG_ERROR("Read function not supported by the feature type!"); \
152 #undef GET_SPARSE_VECTOR
155 #define GET_SPARSE_VECTOR_AND_LABEL(fname, conv, sg_type) \
157 void CStreamingFile::get_sparse_vector_and_label \
158 (SGSparseVectorEntry<sg_type>*& vector, \
164 SG_ERROR("Read function not supported by the feature type!"); \
180 #undef GET_SPARSE_VECTOR_AND_LABEL
184 SG_ERROR(
"Read function not supported by the feature type!\n");
189 SG_ERROR(
"Read function not supported by the feature type!\n");
193 using namespace shogun;
221 int file = open((
const char*)
filename, mode);
229 SG_ERROR(
"Error getting the file name!\n");