33 #define GET_VECTOR(fname, conv, sg_type) \ 34 void CStreamingFile::get_vector \ 35 (sg_type*& vector, int32_t& num_feat) \ 39 SG_ERROR("Read function not supported by the feature type!") \ 58 #define GET_VECTOR_AND_LABEL(fname, conv, sg_type) \ 59 void CStreamingFile::get_vector_and_label \ 60 (sg_type*& vector, int32_t& num_feat, float64_t& label) \ 64 SG_ERROR("Read function not supported by the feature type!") \ 80 #undef GET_VECTOR_AND_LABEL 83 #define GET_STRING(fname, conv, sg_type) \ 84 void CStreamingFile::get_string \ 85 (sg_type*& vector, int32_t& num_feat) \ 89 SG_ERROR("Read function not supported by the feature type!") \ 108 #define GET_STRING_AND_LABEL(fname, conv, sg_type) \ 109 void CStreamingFile::get_string_and_label \ 110 (sg_type*& vector, int32_t& num_feat, float64_t& label) \ 114 SG_ERROR("Read function not supported by the feature type!") \ 130 #undef GET_STRING_AND_LABEL 133 #define GET_SPARSE_VECTOR(fname, conv, sg_type) \ 135 void CStreamingFile::get_sparse_vector \ 136 (SGSparseVectorEntry<sg_type>*& vector, int32_t& num_feat) \ 140 SG_ERROR("Read function not supported by the feature type!") \ 156 #undef GET_SPARSE_VECTOR 159 #define GET_SPARSE_VECTOR_AND_LABEL(fname, conv, sg_type) \ 161 void CStreamingFile::get_sparse_vector_and_label \ 162 (SGSparseVectorEntry<sg_type>*& vector, \ 168 SG_ERROR("Read function not supported by the feature type!") \ 184 #undef GET_SPARSE_VECTOR_AND_LABEL 188 SG_ERROR(
"Read function not supported by the feature type!\n")
193 SG_ERROR(
"Read function not supported by the feature type!\n")
225 int file = open((
const char*)
filename, mode);
227 SG_ERROR(
"Error opening file '%s'\n", filename)
233 SG_ERROR(
"Error getting the file name!\n")
#define GET_STRING_AND_LABEL(fname, conv, sg_type)
virtual void get_vector(bool *&vector, int32_t &len)
#define GET_VECTOR_AND_LABEL(fname, conv, sg_type)
char * filename
Name of the handled file.
Class SGObject is the base class of all shogun objects.
#define GET_SPARSE_VECTOR_AND_LABEL(fname, conv, sg_type)
CIOBuffer * buf
Buffer to hold stuff in memory.
#define GET_STRING(fname, conv, sg_type)
#define GET_SPARSE_VECTOR(fname, conv, sg_type)
#define GET_VECTOR(fname, conv, sg_type)
virtual void get_vector_and_label(bool *&vector, int32_t &len, float64_t &label)
all of classes and functions are contained in the shogun namespace
virtual ~CStreamingFile()