Opm::KeywordValidation Namespace Reference

Classes

class  allow_values
 
struct  is_bool_convertible
 
class  KeywordValidator
 
struct  SupportedKeywordProperties
 
struct  SupportedKeywords
 
struct  UnsupportedKeywordProperties
 
struct  ValidationError
 

Typedefs

using UnsupportedKeywords = std::map< std::string, UnsupportedKeywordProperties >
 
template<typename T >
using SupportedSingleKeywordItems = std::map< std::size_t, SupportedKeywordProperties< T > >
 
template<typename T >
using SupportedKeywordItems = std::map< std::string, SupportedSingleKeywordItems< T > >
 
using ValidationFunction = std::function< void(const DeckKeyword &, std::vector< ValidationError > &)>
 

Functions

std::string get_error_report (const std::vector< ValidationError > &errors, const bool include_noncritical, const bool include_critical)
 
std::unordered_map< std::string, ValidationFunctionspecialValidation ()
 

Typedef Documentation

◆ SupportedKeywordItems

template<typename T >
using Opm::KeywordValidation::SupportedKeywordItems = typedef std::map<std::string, SupportedSingleKeywordItems<T> >

◆ SupportedSingleKeywordItems

template<typename T >
using Opm::KeywordValidation::SupportedSingleKeywordItems = typedef std::map<std::size_t, SupportedKeywordProperties<T> >

◆ UnsupportedKeywords

◆ ValidationFunction

using Opm::KeywordValidation::ValidationFunction = typedef std::function<void(const DeckKeyword&, std::vector<ValidationError>&)>

Function Documentation

◆ get_error_report()

std::string Opm::KeywordValidation::get_error_report ( const std::vector< ValidationError > &  errors,
const bool  include_noncritical,
const bool  include_critical 
)

◆ specialValidation()

std::unordered_map< std::string, ValidationFunction > Opm::KeywordValidation::specialValidation ( )