tfel
Loading...
Searching...
No Matches
mfront::AbstractModelInterface Struct Referenceabstract
Inheritance diagram for mfront::AbstractModelInterface:
mfront::CastemModelInterface mfront::GenericModelInterface mfront::MFrontModelInterface mfront::MFrontModelInterface mfront::MFrontPleiadesModelInterfaceBase mfront::PleiadesModelInterface mfront::Castem21ModelInterface mfront::MFrontGerminalModelInterface

Public Types

using CxxTokenizer = tfel::utilities::CxxTokenizer
 a simple alias
using TokensContainer = CxxTokenizer::TokensContainer
 a simple alias
using tokens_iterator = CxxTokenizer::TokensContainer::const_iterator
 a simple alias
using DataMap = tfel::utilities::DataMap
 a simple alias

Public Member Functions

virtual void setOptions (const DataMap &)=0
 give options to the interface
virtual void declareReservedNames (std::set< std::string > &)=0
virtual std::pair< bool, tokens_iterator > treatKeyword (const std::string &, const std::vector< std::string > &, tokens_iterator, const tokens_iterator)=0
virtual void getTargetsDescription (TargetsDescription &, const ModelDescription &)=0
 : fill the target descripton
virtual void writeOutputFiles (const FileDescription &, const ModelDescription &)=0
virtual ~AbstractModelInterface ()
 desctructor

Member Function Documentation

◆ declareReservedNames()

virtual void mfront::AbstractModelInterface::declareReservedNames ( std::set< std::string > & )
pure virtual

◆ getTargetsDescription()

virtual void mfront::AbstractModelInterface::getTargetsDescription ( TargetsDescription & ,
const ModelDescription &  )
pure virtual

: fill the target descripton

Parameters
[out]tdtarget description
[in]mdmodel description

Implemented in mfront::CastemModelInterface, mfront::GenericModelInterface, mfront::MFrontModelInterface, mfront::MFrontModelInterface, mfront::MFrontPleiadesModelInterfaceBase, and mfront::PleiadesModelInterface.

◆ setOptions()

virtual void mfront::AbstractModelInterface::setOptions ( const DataMap & )
pure virtual

give options to the interface

Those options may have been read from a configuration file or from the command line

Parameters
[in]optsoptions

Implemented in mfront::CastemModelInterface, mfront::GenericModelInterface, mfront::MFrontModelInterface, mfront::MFrontModelInterface, mfront::MFrontPleiadesModelInterfaceBase, and mfront::PleiadesModelInterface.

◆ treatKeyword()

virtual std::pair< bool, tokens_iterator > mfront::AbstractModelInterface::treatKeyword ( const std::string & ,
const std::vector< std::string > & ,
tokens_iterator ,
const tokens_iterator  )
pure virtual
Parameters
[in]k: keyword treated
[in]ilist of interfaces to which the keyword is restricted
[in]p: iterator to the current token
[in]pe: iterator past the end of the file
Returns
a pair. The first entry is true if the keyword was treated by the interface. The second entry is an iterator after the last token treated.

Implemented in mfront::Castem21ModelInterface, mfront::CastemModelInterface, mfront::GenericModelInterface, mfront::MFrontGerminalModelInterface, mfront::MFrontModelInterface, mfront::MFrontModelInterface, and mfront::PleiadesModelInterface.

◆ writeOutputFiles()

virtual void mfront::AbstractModelInterface::writeOutputFiles ( const FileDescription & ,
const ModelDescription &  )
pure virtual

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