Definition at line 28 of file mainConceptLearnClient.cpp. References Impala::atoi(), ILOG_DEBUG, Impala::QUID_CLASS_SHIFT, Impala::QUID_ID_SHIFT, Impala::QUID_OBJECT_SHIFT, and Impala::QUID_SET_SHIFT. Referenced by DoActiveLearning(). 00029 { 00030 ILOG_DEBUG("parsing Q = " << line); 00031 char *cline = (char*)line.c_str(); 00032 char * pch; 00033 pch = strtok (cline,"(,)"); 00034 00035 pch = strtok (NULL, "(,)"); 00036 00037 int qclass = atoi(pch); 00038 pch = strtok (NULL, "(,)"); 00039 int qset = atoi(pch); 00040 pch = strtok (NULL, "(,)"); 00041 int qobject = atoi(pch); 00042 pch = strtok (NULL, "(,)"); 00043 int qid = atoi(pch); 00044 pch = strtok (NULL, "(,)"); 00045 00046 return (((Quid) qclass) << QUID_CLASS_SHIFT) | 00047 (((Quid) qset) << QUID_SET_SHIFT) | 00048 (((Quid) qobject) << QUID_OBJECT_SHIFT) | 00049 (((Quid) qid) << QUID_ID_SHIFT); 00050 }
Here is the call graph for this function:
|