22 if (snString.substr(0,5)==std::string(
"20220")){
30 if (fullSerialNumber > 20220000000000LL){
38 if (fullSerialNumber > 20220000000000LL){
58 std::ostringstream os;
62 return std::string(
"0");
76SCT_SerialNumber::operator
unsigned int()
const{
Header file for a utility class to hold the serial number.
SCT_SerialNumber()
Default constructor produces an invalid serial number.
unsigned long long to_ulonglong() const
Full serial number as long long.
std::string str() const
Full serial number as a string.
bool isWellFormed() const
Cursory check on whether the serial number is well formed N.B.
unsigned int to_uint() const
Truncated serial number as unsigned int.
unsigned int m_truncatedNumber
The truncated number holds the integer part after the '20220' of the serial number.