SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
Parser.cpp File Reference

Go to the source code of this file.

Macros

#define READ_INT_METHOD(fname, convf, sg_type)
#define READ_REAL_METHOD(fname, convf, sg_type)

Macro Definition Documentation

#define READ_INT_METHOD (   fname,
  convf,
  sg_type 
)
Value:
sg_type CParser::fname() \
{ \
SGVector<char> token=read_cstring(); \
\
if (token.vlen>0) \
return (sg_type) convf(token.vector, NULL, 10); \
else \
return (sg_type) 0L; \
}

Definition at line 96 of file Parser.cpp.

#define READ_REAL_METHOD (   fname,
  convf,
  sg_type 
)
Value:
sg_type CParser::fname() \
{ \
SGVector<char> token=read_cstring(); \
\
if (token.vlen>0) \
return (sg_type) convf(token.vector, NULL); \
else \
return (sg_type) 0L; \
}

Definition at line 111 of file Parser.cpp.


SHOGUN Machine Learning Toolbox - Documentation