30 for (
auto& p : mStore) {
31 const auto&
key = p.first;
32 const auto info = p.second;
33 auto tinfo = info.typeinfo_name;
35 std::string
value(
"unknown-value");
37 if (tinfo ==
typeid(
int).
name()) {
38 value = stringFromType<int>(info.bufferptr);
41 else if (tinfo ==
typeid(
unsigned int).
name()) {
42 value = stringFromType<unsigned int>(info.bufferptr);
45 else if (tinfo ==
typeid(
short).
name()) {
46 value = stringFromType<short>(info.bufferptr);
49 else if (tinfo ==
typeid(
unsigned short).
name()) {
50 value = stringFromType<unsigned short>(info.bufferptr);
53 else if (tinfo ==
typeid(
double).
name()) {
54 value = stringFromType<double>(info.bufferptr);
57 else if (tinfo ==
typeid(
float).
name()) {
58 value = stringFromType<float>(info.bufferptr);
61 else if (tinfo ==
typeid(std::string).
name()) {
64 std::cout <<
"key: " <<
key <<
" value: " <<
value;
65 if (includetypeinfo) {
66 std::cout <<
" type: " << info.typeinfo_name;