19 #include "ICClassifier.hpp"
20 #include <tobicore/TCException.hpp>
52 ICClassifier::~ICClassifier() {
64 if(this->_name.size() > ICCLASSIFIER_CHNAME_SIZE)
65 throw TCException(
"ICCLASSIFIER_CHNAME_SIZE exceeded",
73 strcpy(this->_chname, this->_name.c_str());
78 if(this->_desc.size() > ICCLASSIFIER_CHDESC_SIZE)
79 throw TCException(
"ICCLASSIFIER_CHDESC_SIZE exceeded",
87 strcpy(this->_chdesc, this->_desc.c_str());
101 this->_ltype = ltype;
122 if(ltype.compare(TxtLabelUndef) == 0)
124 else if(ltype.compare(TxtLabelBiosig) == 0)
126 else if(ltype.compare(TxtLabelCustom) == 0)
128 else if(ltype.compare(TxtLabelClass) == 0)
147 if(vtype.compare(ICTYPES_ENTRY_PROB) == 0)
149 else if(vtype.compare(ICTYPES_ENTRY_DIST) == 0)
151 else if(vtype.compare(ICTYPES_ENTRY_CLBL) == 0)
153 else if(vtype.compare(ICTYPES_ENTRY_RCOE) == 0)
162 if(ltype.compare(ICTYPES_LABEL_CUSTOM) == 0)
164 else if(ltype.compare(ICTYPES_LABEL_BIOSIG) == 0)
166 else if(ltype.compare(ICTYPES_LABEL_CLASS) == 0)
183 if(strcmp(vtype, ICTYPES_ENTRY_PROB) == 0)
185 else if(strcmp(vtype, ICTYPES_ENTRY_DIST) == 0)
187 else if(strcmp(vtype, ICTYPES_ENTRY_CLBL) == 0)
189 else if(strcmp(vtype, ICTYPES_ENTRY_RCOE) == 0)
206 if(strcmp(ltype, ICTYPES_LABEL_CUSTOM) == 0)
208 else if(strcmp(ltype, ICTYPES_LABEL_BIOSIG) == 0)
210 else if(strcmp(ltype, ICTYPES_LABEL_CLASS) == 0)