add serialization template to DeckKeyword

This commit is contained in:
Arne Morten Kvarving
2020-03-18 09:09:27 +01:00
parent 902fd38eb2
commit ae55a7f4d1

View File

@@ -97,6 +97,18 @@ namespace Opm {
bool operator!=(const DeckKeyword& other) const;
friend std::ostream& operator<<(std::ostream& os, const DeckKeyword& keyword);
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(m_keywordName);
m_location.serializeOp(serializer);
serializer.vector(m_recordList);
serializer(m_isDataKeyword);
serializer(m_slashTerminated);
serializer(m_isDoubleRecordKeyword);
}
private:
std::string m_keywordName;
Location m_location;