25 AdaptorHost::STD_CHARACTERS =
26 "0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-.@_";
34 const string&
id = flex_id->stringValue();
40 if (
id.find_first_not_of(STD_CHARACTERS) == string::npos) {
46 binary.assign(
id.begin(),
id.end());
52 for (vector<uint8_t>::const_iterator it = binary.begin();
53 it != binary.end(); ++it) {
57 tmp << setw(2) << setfill('0') << static_cast<unsigned int>(*it);
60 host->set(
"flex-id", Element::create(tmp.str()));
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< const Element > ConstElementPtr
std::vector< uint8_t > quotedStringToBinary(const std::string "ed_string)
Converts a string in quotes into vector.
Defines the logger used by the top-level component of kea-lfc.