Add DeckKeyword::location()
This commit is contained in:
parent
fa964b5820
commit
de5246c701
@ -43,6 +43,8 @@ namespace Opm {
|
||||
void setLocation(const std::pair<const std::string&, std::size_t>& location);
|
||||
const std::string& getFileName() const;
|
||||
int getLineNumber() const;
|
||||
std::pair<std::string, std::size_t> location() const;
|
||||
|
||||
|
||||
size_t size() const;
|
||||
void addRecord(DeckRecord&& record);
|
||||
|
@ -60,6 +60,10 @@ namespace Opm {
|
||||
return m_lineNumber;
|
||||
}
|
||||
|
||||
std::pair<std::string, std::size_t> DeckKeyword::location() const {
|
||||
return std::make_pair( this->getFileName(), this->getLineNumber() );
|
||||
}
|
||||
|
||||
void DeckKeyword::setDataKeyword(bool isDataKeyword_) {
|
||||
m_isDataKeyword = isDataKeyword_;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user