49 const char* AshtechALB::myId =
"ALB";
52 void AshtechALB::reallyGetRecord(
FFStream& ffs)
58 string& rawData = stream.
rawData;
62 if (
id ==
"" && rawData.size()>=11 &&
63 rawData.substr(0,7) == preamble &&
65 id = rawData.substr(7,3);
69 if (
id ==
"" || !checkId(
id))
76 void AshtechALB::decode(
const std::string&
data)
82 cout <<
"ALB " << str.length() <<
" " << endl;
83 if (str.length() == 138)
86 header = str.substr(0,11); str.erase(0,11);
87 svid = decodeVar<uint16_t>(str);
90 for (
int w=0; w<10; w++)
91 word[w] = decodeVar<uint32_t>(str);
93 (void)decodeVar<uint16_t>(str);
94 clear(ios_base::goodbit);
106 oss << getName() <<
"1:"
110 out << oss.str() << flush;