#include <ParseContext.hpp>

Public Member Functions

 ParseContext ()
 
 ParseContext (InputError::Action default_action)
 
 ParseContext (const std::vector< std::pair< std::string, InputError::Action > > &initial)
 
void handleError (const std::string &errorKey, const std::string &msg, ErrorGuard &errors) const
 
void handleUnknownKeyword (const std::string &keyword, ErrorGuard &errors) const
 
bool hasKey (const std::string &key) const
 
ParseContext withKey (const std::string &key, InputError::Action action=InputError::WARN) const
 
ParseContextwithKey (const std::string &key, InputError::Action action=InputError::WARN)
 
void updateKey (const std::string &key, InputError::Action action)
 
void update (InputError::Action action)
 
void update (const std::string &keyString, InputError::Action action)
 
void ignoreKeyword (const std::string &keyword)
 
InputError::Action get (const std::string &key) const
 
std::map< std::string, InputError::Action >::const_iterator begin () const
 
std::map< std::string, InputError::Action >::const_iterator end () const
 
void addKey (const std::string &key, InputError::Action default_action)
 

Static Public Attributes

static const std::string PARSE_EXTRA_RECORDS
 
static const std::string PARSE_UNKNOWN_KEYWORD
 
static const std::string PARSE_RANDOM_TEXT
 
static const std::string PARSE_RANDOM_SLASH
 
static const std::string PARSE_MISSING_DIMS_KEYWORD
 
static const std::string PARSE_EXTRA_DATA
 
static const std::string PARSE_MISSING_INCLUDE
 
static const std::string RUNSPEC_NUMWELLS_TOO_LARGE
 
static const std::string RUNSPEC_CONNS_PER_WELL_TOO_LARGE
 
static const std::string RUNSPEC_NUMGROUPS_TOO_LARGE
 
static const std::string RUNSPEC_GROUPSIZE_TOO_LARGE
 
static const std::string PARSE_LONG_KEYWORD
 
static const std::string UNIT_SYSTEM_MISMATCH
 
static const std::string UNSUPPORTED_SCHEDULE_GEO_MODIFIER
 
static const std::string UNSUPPORTED_COMPORD_TYPE
 
static const std::string UNSUPPORTED_INITIAL_THPRES
 
static const std::string UNSUPPORTED_TERMINATE_IF_BHP
 
static const std::string UDQ_PARSE_ERROR
 
static const std::string UDQ_TYPE_ERROR
 
static const std::string INTERNAL_ERROR_UNINITIALIZED_THPRES
 
static const std::string PARSE_MISSING_SECTIONS
 
static const std::string PARSE_WGNAME_SPACE
 
static const std::string SUMMARY_UNKNOWN_WELL
 
static const std::string SUMMARY_UNKNOWN_GROUP
 
static const std::string SUMMARY_UNHANDLED_KEYWORD
 
static const std::string SUMMARY_UNDEFINED_UDQ
 
static const std::string SUMMARY_UDQ_MISSING_UNIT
 
static const std::string SCHEDULE_INVALID_NAME
 
static const std::string ACTIONX_ILLEGAL_KEYWORD
 
static const std::string RPT_MIXED_STYLE
 
static const std::string RPT_UNKNOWN_MNEMONIC
 
static const std::string SCHEDULE_GROUP_ERROR
 
static const std::string SCHEDULE_IGNORED_GUIDE_RATE
 
static const std::string SCHEDULE_COMPSEGS_INVALID
 
static const std::string SCHEDULE_COMPSEGS_NOT_SUPPORTED
 
static const std::string SIMULATOR_KEYWORD_NOT_SUPPORTED
 
static const std::string SIMULATOR_KEYWORD_ITEM_NOT_SUPPORTED
 

Constructor & Destructor Documentation

◆ ParseContext() [1/3]

Opm::ParseContext::ParseContext ( )

◆ ParseContext() [2/3]

Opm::ParseContext::ParseContext ( InputError::Action  default_action)
explicit

◆ ParseContext() [3/3]

Opm::ParseContext::ParseContext ( const std::vector< std::pair< std::string, InputError::Action > > &  initial)
explicit

Member Function Documentation

◆ addKey()

void Opm::ParseContext::addKey ( const std::string key,
InputError::Action  default_action 
)

◆ begin()

std::map< std::string, InputError::Action >::const_iterator Opm::ParseContext::begin ( ) const

◆ end()

std::map< std::string, InputError::Action >::const_iterator Opm::ParseContext::end ( ) const

◆ get()

InputError::Action Opm::ParseContext::get ( const std::string key) const

◆ handleError()

void Opm::ParseContext::handleError ( const std::string errorKey,
const std::string msg,
ErrorGuard errors 
) const

◆ handleUnknownKeyword()

void Opm::ParseContext::handleUnknownKeyword ( const std::string keyword,
ErrorGuard errors 
) const

◆ hasKey()

bool Opm::ParseContext::hasKey ( const std::string key) const

◆ ignoreKeyword()

void Opm::ParseContext::ignoreKeyword ( const std::string keyword)

◆ update() [1/2]

void Opm::ParseContext::update ( const std::string keyString,
InputError::Action  action 
)

◆ update() [2/2]

void Opm::ParseContext::update ( InputError::Action  action)

◆ updateKey()

void Opm::ParseContext::updateKey ( const std::string key,
InputError::Action  action 
)

◆ withKey() [1/2]

ParseContext & Opm::ParseContext::withKey ( const std::string key,
InputError::Action  action = InputError::WARN 
)

◆ withKey() [2/2]

ParseContext Opm::ParseContext::withKey ( const std::string key,
InputError::Action  action = InputError::WARN 
) const

Member Data Documentation

◆ ACTIONX_ILLEGAL_KEYWORD

const std::string Opm::ParseContext::ACTIONX_ILLEGAL_KEYWORD
static

◆ INTERNAL_ERROR_UNINITIALIZED_THPRES

const std::string Opm::ParseContext::INTERNAL_ERROR_UNINITIALIZED_THPRES
static

◆ PARSE_EXTRA_DATA

const std::string Opm::ParseContext::PARSE_EXTRA_DATA
static

◆ PARSE_EXTRA_RECORDS

const std::string Opm::ParseContext::PARSE_EXTRA_RECORDS
static

◆ PARSE_LONG_KEYWORD

const std::string Opm::ParseContext::PARSE_LONG_KEYWORD
static

◆ PARSE_MISSING_DIMS_KEYWORD

const std::string Opm::ParseContext::PARSE_MISSING_DIMS_KEYWORD
static

◆ PARSE_MISSING_INCLUDE

const std::string Opm::ParseContext::PARSE_MISSING_INCLUDE
static

◆ PARSE_MISSING_SECTIONS

const std::string Opm::ParseContext::PARSE_MISSING_SECTIONS
static

◆ PARSE_RANDOM_SLASH

const std::string Opm::ParseContext::PARSE_RANDOM_SLASH
static

◆ PARSE_RANDOM_TEXT

const std::string Opm::ParseContext::PARSE_RANDOM_TEXT
static

◆ PARSE_UNKNOWN_KEYWORD

const std::string Opm::ParseContext::PARSE_UNKNOWN_KEYWORD
static

◆ PARSE_WGNAME_SPACE

const std::string Opm::ParseContext::PARSE_WGNAME_SPACE
static

◆ RPT_MIXED_STYLE

const std::string Opm::ParseContext::RPT_MIXED_STYLE
static

◆ RPT_UNKNOWN_MNEMONIC

const std::string Opm::ParseContext::RPT_UNKNOWN_MNEMONIC
static

◆ RUNSPEC_CONNS_PER_WELL_TOO_LARGE

const std::string Opm::ParseContext::RUNSPEC_CONNS_PER_WELL_TOO_LARGE
static

Dynamic number of connections per well exceeds maximum declared in RUNSPEC keyword WELLDIMS (item 2).

◆ RUNSPEC_GROUPSIZE_TOO_LARGE

const std::string Opm::ParseContext::RUNSPEC_GROUPSIZE_TOO_LARGE
static

Dynamic group size exceeds maximum number declared in RUNSPEC keyword WELLDIMS (item 4).

◆ RUNSPEC_NUMGROUPS_TOO_LARGE

const std::string Opm::ParseContext::RUNSPEC_NUMGROUPS_TOO_LARGE
static

Dynamic number of groups exceeds maximum number declared in RUNSPEC keyword WELLDIMS (item 3).

◆ RUNSPEC_NUMWELLS_TOO_LARGE

const std::string Opm::ParseContext::RUNSPEC_NUMWELLS_TOO_LARGE
static

Dynamic number of wells exceeds maximum declared in RUNSPEC keyword WELLDIMS (item 1).

◆ SCHEDULE_COMPSEGS_INVALID

const std::string Opm::ParseContext::SCHEDULE_COMPSEGS_INVALID
static

◆ SCHEDULE_COMPSEGS_NOT_SUPPORTED

const std::string Opm::ParseContext::SCHEDULE_COMPSEGS_NOT_SUPPORTED
static

◆ SCHEDULE_GROUP_ERROR

const std::string Opm::ParseContext::SCHEDULE_GROUP_ERROR
static

◆ SCHEDULE_IGNORED_GUIDE_RATE

const std::string Opm::ParseContext::SCHEDULE_IGNORED_GUIDE_RATE
static

◆ SCHEDULE_INVALID_NAME

const std::string Opm::ParseContext::SCHEDULE_INVALID_NAME
static

◆ SIMULATOR_KEYWORD_ITEM_NOT_SUPPORTED

const std::string Opm::ParseContext::SIMULATOR_KEYWORD_ITEM_NOT_SUPPORTED
static

◆ SIMULATOR_KEYWORD_NOT_SUPPORTED

const std::string Opm::ParseContext::SIMULATOR_KEYWORD_NOT_SUPPORTED
static

◆ SUMMARY_UDQ_MISSING_UNIT

const std::string Opm::ParseContext::SUMMARY_UDQ_MISSING_UNIT
static

◆ SUMMARY_UNDEFINED_UDQ

const std::string Opm::ParseContext::SUMMARY_UNDEFINED_UDQ
static

◆ SUMMARY_UNHANDLED_KEYWORD

const std::string Opm::ParseContext::SUMMARY_UNHANDLED_KEYWORD
static

◆ SUMMARY_UNKNOWN_GROUP

const std::string Opm::ParseContext::SUMMARY_UNKNOWN_GROUP
static

◆ SUMMARY_UNKNOWN_WELL

const std::string Opm::ParseContext::SUMMARY_UNKNOWN_WELL
static

◆ UDQ_PARSE_ERROR

const std::string Opm::ParseContext::UDQ_PARSE_ERROR
static

◆ UDQ_TYPE_ERROR

const std::string Opm::ParseContext::UDQ_TYPE_ERROR
static

◆ UNIT_SYSTEM_MISMATCH

const std::string Opm::ParseContext::UNIT_SYSTEM_MISMATCH
static

◆ UNSUPPORTED_COMPORD_TYPE

const std::string Opm::ParseContext::UNSUPPORTED_COMPORD_TYPE
static

◆ UNSUPPORTED_INITIAL_THPRES

const std::string Opm::ParseContext::UNSUPPORTED_INITIAL_THPRES
static

◆ UNSUPPORTED_SCHEDULE_GEO_MODIFIER

const std::string Opm::ParseContext::UNSUPPORTED_SCHEDULE_GEO_MODIFIER
static

◆ UNSUPPORTED_TERMINATE_IF_BHP

const std::string Opm::ParseContext::UNSUPPORTED_TERMINATE_IF_BHP
static

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