Merge pull request #3125 from akva2/groupandnetworkvalues_serialize
data::GroupAndNetworkValues: add serializer support
This commit is contained in:
commit
6738269487
@ -257,6 +257,21 @@ namespace Opm { namespace data {
|
||||
return json_data;
|
||||
}
|
||||
|
||||
template<class Serializer>
|
||||
void serializeOp(Serializer& serializer)
|
||||
{
|
||||
serializer.map(groupData);
|
||||
serializer.map(nodeData);
|
||||
}
|
||||
|
||||
static GroupAndNetworkValues serializeObject()
|
||||
{
|
||||
return GroupAndNetworkValues{
|
||||
{{"test_data", GroupData::serializeObject()}},
|
||||
{{"test_node", NodeData::serializeObject()}}
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
template <class MessageBufferType, class ValueType>
|
||||
void writeMap(const std::map<std::string, ValueType>& map,
|
||||
|
Loading…
Reference in New Issue
Block a user