#include "rtcm.hh" #include "bits.hh" #include using namespace std; void RTCMMessage::parse(const std::string& str) { auto gbu=[&str](int offset, int bits) { return getbitu((const unsigned char*)str.c_str(), offset, bits); }; auto gbs=[&str](int offset, int bits) { return getbits((const unsigned char*)str.c_str(), offset, bits); }; type = gbu(0, 12); // cout<<"Message number: "< ("; // cout<< ed.dradial<<", "<