20 #ifndef DECKKEYWORD_HPP 21 #define DECKKEYWORD_HPP 23 #include <opm/common/OpmLog/KeywordLocation.hpp> 25 #include <opm/input/eclipse/Deck/DeckRecord.hpp> 26 #include <opm/input/eclipse/Deck/value_status.hpp> 41 typedef std::vector< DeckRecord >::const_iterator const_iterator;
53 const std::string& name()
const;
58 std::size_t size()
const;
61 const DeckRecord& getRecord(std::size_t index)
const;
64 const DeckRecord& operator[](std::size_t index)
const;
66 void setDataKeyword(
bool isDataKeyword =
true);
67 void setDoubleRecordKeyword(
bool isDoubleRecordKeyword =
true);
68 bool isDataKeyword()
const;
69 bool isDoubleRecordKeyword()
const;
71 std::vector<int>& getIntData();
72 std::vector<double>& getRawDoubleData();
74 const std::vector<int>& getIntData()
const;
75 const std::vector<double>& getRawDoubleData()
const;
76 const std::vector<double>& getSIDoubleData()
const;
77 const std::vector<std::string>& getStringData()
const;
78 const std::vector<value::status>& getValueStatus()
const;
79 std::size_t getDataSize()
const;
84 template <
class Keyword>
86 if (Keyword::keywordName == this->m_keywordName)
92 const_iterator begin()
const;
93 const_iterator end()
const;
94 bool equal_data(
const DeckKeyword& other,
bool cmp_default =
false,
bool cmp_numeric =
true)
const;
95 bool equal(
const DeckKeyword& other,
bool cmp_default =
false,
bool cmp_numeric =
true)
const;
99 friend std::ostream& operator<<(std::ostream& os,
const DeckKeyword& keyword);
101 template<
class Serializer>
104 serializer(m_keywordName);
105 serializer(m_location);
106 serializer(m_recordList);
107 serializer(m_isDataKeyword);
108 serializer(m_slashTerminated);
109 serializer(m_isDoubleRecordKeyword);
113 std::string m_keywordName;
116 std::vector< DeckRecord > m_recordList;
117 bool m_isDataKeyword;
118 bool m_slashTerminated;
119 bool m_isDoubleRecordKeyword =
false;
Definition: KeywordLocation.hpp:27
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Definition: DeckOutput.hpp:29
Definition: ParserKeyword.hpp:86
Definition: UnitSystem.hpp:34
Definition: DeckRecord.hpp:33
Class for (de-)serializing.
Definition: Serializer.hpp:95
Definition: DeckKeyword.hpp:38