#include <portable_storage_val_converters.h>
◆ convert()
Definition at line 143 of file portable_storage_val_converters.h.
145 MTRACE(
"Converting std::string to uint64_t. Source: " << from);
148 to = boost::lexical_cast<uint64_t>(from);
150 else if (boost::regex_match (from, boost::regex(
"\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\dZ")))
155 if (strptime(from.c_str(),
"%Y-%m-%dT%H:%M:%S", &tm))
158 std::istringstream ss(from);
159 if (ss >> std::get_time(&tm,
"%Y-%m-%dT%H:%M:%S"))
161 to = std::mktime(&tm);
#define ASSERT_AND_THROW_WRONG_CONVERSION()
The documentation for this struct was generated from the following file: