19 #ifndef TCLANGUAGE_CPP
20 #define TCLANGUAGE_CPP
22 #include "TCLanguage.hpp"
23 #include "TCTypes.hpp"
30 std::ostringstream stream;
31 stream <<
"<" << TCSTATUS_ROOTNODE <<
" " <<
32 TCSTATUS_VERSIONNODE <<
"=\"" << TCSTATUS_VERSION <<
"\" " <<
33 TCSTATUS_COMPONENTNODE <<
"=\"" << component <<
"\" " <<
34 TCSTATUS_STATUSNODE <<
"=\"" << status <<
"\" " <<
35 TCSTATUS_FRAMENODE <<
"=\"" << fidx <<
"\"" <<
"/>";
41 sscanf(message.c_str(),
"<%*s version=\"%[^'\"']\" %*s/>", version);
42 return(strcmp(version, TCSTATUS_VERSION) == 0);
46 int* status,
int* fidx) {
48 int ret = sscanf(message.c_str(),
49 "<tcstatus %*s component=\"%d\" status=\"%d\" frame=\"%d\"/>",
50 component, status, fidx);