#include <RawKeyword.hpp>

Public Member Functions

 RawKeyword (const std::string &name, Raw::KeywordSizeEnum sizeType, const std::string &filename, size_t lineNR)
 
 RawKeyword (const std::string &name, const std::string &filename, size_t lineNR, size_t inputSize, bool isTableCollection=false)
 
const std::string & getKeywordName () const
 
void addRawRecordString (const std::string &partialRecordString)
 
size_t size () const
 
Raw::KeywordSizeEnum getSizeType () const
 
RawRecordPtr getRecord (size_t index) const
 
bool isPartialRecordStringEmpty () const
 
bool isFinished () const
 
bool unKnownSize () const
 
void finalizeUnknownSize ()
 
const std::string & getFilename () const
 
size_t getLineNR () const
 

Static Public Member Functions

static bool isKeywordPrefix (const std::string &line, std::string &keywordName)
 
static bool isTerminator (std::string line)
 

Detailed Description

Class representing a RawKeyword, meaning both the actual keyword phrase, and the records, represented as a list of RawRecord objects. The class also contains static functions to aid the parsing of the input file. The creating of an instance is performed by calling the addRawRecordString method repeatedly.

Constructor & Destructor Documentation

Opm::RawKeyword::RawKeyword ( const std::string &  name,
Raw::KeywordSizeEnum  sizeType,
const std::string &  filename,
size_t  lineNR 
)
Opm::RawKeyword::RawKeyword ( const std::string &  name,
const std::string &  filename,
size_t  lineNR,
size_t  inputSize,
bool  isTableCollection = false 
)

Member Function Documentation

void Opm::RawKeyword::addRawRecordString ( const std::string &  partialRecordString)
void Opm::RawKeyword::finalizeUnknownSize ( )
const std::string& Opm::RawKeyword::getFilename ( ) const
const std::string& Opm::RawKeyword::getKeywordName ( ) const
size_t Opm::RawKeyword::getLineNR ( ) const
RawRecordPtr Opm::RawKeyword::getRecord ( size_t  index) const
Raw::KeywordSizeEnum Opm::RawKeyword::getSizeType ( ) const
bool Opm::RawKeyword::isFinished ( ) const
static bool Opm::RawKeyword::isKeywordPrefix ( const std::string &  line,
std::string &  keywordName 
)
static
bool Opm::RawKeyword::isPartialRecordStringEmpty ( ) const
static bool Opm::RawKeyword::isTerminator ( std::string  line)
static
size_t Opm::RawKeyword::size ( ) const
bool Opm::RawKeyword::unKnownSize ( ) const

The documentation for this class was generated from the following file: