struct DataStruct {
int Data1;
int Data2;
};
struct DataStruct Content;
...
std::map<std::string, int DataStruct::*> data_struct_field;
...
data_struct_field["Data1"] = &DataStruct::Data1;
data_struct_field["Data2"] = &DataStruct::Data2;
...
Content.*data_struct_field["Data1"] = 1;