tfel
Loading...
Searching...
No Matches
mfront::MFront Struct Reference

the main class of MFront More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/MFront.hxx>

Inheritance diagram for mfront::MFront:
tfel::utilities::ArgumentParserBase< MFront > mfront::MFrontBase tfel::utilities::ArgumentParser

Public Member Functions

 MFront ()
 constructor
 MFront (const int, const char *const *const)
 constructor
virtual TargetsDescription treatFile (const std::string &, const tfel::utilities::DataMap &={}) const
 treat a file (analyse and generate output files)
virtual void exe ()
 execute MFront process
 ~MFront () override
 destructor
Public Member Functions inherited from tfel::utilities::ArgumentParserBase< MFront >
 ArgumentParserBase ()
 default constructor
ArgumentParserBase & operator= (const ArgumentParserBase &)=delete
void registerNewCallBack (const std::string &, const MemberFuncPtr &, const std::string &="", const bool=false)
 register a new callback
 ~ArgumentParserBase () override
 destructor
Public Member Functions inherited from tfel::utilities::ArgumentParser
 ArgumentParser ()
 default constructor
 ArgumentParser (const int, const char *const *const)
 constructor
 ArgumentParser (const ArgumentParser &)=delete
 copy constructor
 ArgumentParser (ArgumentParser &&)=delete
 move constructor
ArgumentParser & operator= (const ArgumentParser &)=delete
 standard assignement
ArgumentParser & operator= (ArgumentParser &&)=delete
 move assignement
virtual void setArguments (const int, const char *const *const)
 set the arguments to be parsed
virtual void registerCallBack (const std::string &, const CallBack &)
 register a new callback
virtual void registerCallBack (const std::string &, const std::string &, const CallBack &)
 register a new callback
virtual void parseArguments ()
 parse arguments using registred methods.
const CallBacksContainer & getRegistredCallBacks () const
virtual ~ArgumentParser ()
 destructor
Public Member Functions inherited from mfront::MFrontBase
 MFrontBase ()
 constructor
void setInterface (const std::string &)
 add a new interaface
virtual ~MFrontBase ()
 desctructor

Protected Types

enum  { MAKE , CMAKE }
Protected Types inherited from tfel::utilities::ArgumentParser
using AliasContainer = std::map<std::string, std::string>
 a simple alias
using ArgsContainer = std::vector<Argument>
 a simple alias

Protected Member Functions

void treatUnknownArgument () final
 treat an unknown argument
virtual void doNothing () final
 a do nothing callback
const tfel::utilities::Argument & getCurrentCommandLineArgument () const final
 return the current argument
std::string getVersionDescription () const final
 get the version description
std::string getUsageDescription () const final
 get the usage description
virtual void treatGenerator ()
 treat the -G command line option
virtual void treatDefine ()
 treat the -D command line option
virtual void treatHelpCommandsList ()
 treat the –help-commands-list command line option
virtual void treatHelpCommands ()
 treat the –help-commands command line option
virtual void treatHelpCommand ()
 treat the –help-command command line option
virtual void treatHelpBehaviourBrick ()
 treat the –help-behaviour-brick command line option
virtual void treatNoMelt ()
 treat the –no-melt command line option
virtual void treatSilentBuild ()
 treat the –silent-build command line option
virtual void treatSetRPATH ()
 treat the –set-rpath command line option
virtual void treatNoDeps ()
virtual void treatOMake ()
virtual void treatOBuild ()
virtual void treatMake ()
virtual void treatBuild ()
virtual void treatClean ()
virtual void treatTarget ()
virtual void treatOTarget ()
virtual void treatListParsers ()
virtual void treatListDSLOptions ()
virtual void registerArgumentCallBacks ()
virtual void analyseTargetsFile ()
virtual void writeTargetsDescription () const
virtual void buildLibraries (const std::string &)
virtual void cleanLibraries ()
virtual void treatWin32 ()
Protected Member Functions inherited from tfel::utilities::ArgumentParser
virtual void treatHelp ()
 method associated with the '–help' command line argument.
virtual void treatVersion ()
 method associated with the '–version' command line argument
Protected Member Functions inherited from mfront::MFrontBase
virtual bool treatUnknownArgumentBase ()
virtual void finalizeArgumentsParsing ()
 method that must be called once all the arguments have been parsed.
virtual void addInputPaths (const std::string &)
 append paths generated from the given argument to the input files
virtual void treatVerbose ()
 treat the --verbose command line option
virtual void treatUnicodeOutput ()
 treat the --unicode-output command line option
virtual void treatSearchPath ()
 treat the --search-path command line option
virtual void treatDefaultCompatibilityMode ()
 treat the --default-compatibility-mode command line option
virtual void treatMadnexSearchPath ()
 treat the --madnex-search-path command line option
virtual void treatInstallPath ()
 treat the --intall-path (or --install-prefix) command line option
virtual void treatConfigurationFile ()
 treat the --configuration-file command line option
virtual void treatDSLOption ()
 treat the --dsl-option command line option
virtual void treatMaterialPropertyDSLOption ()
 treat the --material-property-dsl-option command line option
virtual void treatBehaviourDSLOption ()
 treat the --behaviour-dsl-option command line option
virtual void treatModelDSLOption ()
 treat the --model-dsl-option command line option
virtual void treatDSLOptionsFile ()
 treat the --dsl-options-file command line option
virtual void treatMaterialPropertyDSLOptionsFile ()
 treat the --material-property-dsl-options-file command line option
virtual void treatBehaviourDSLOptionsFile ()
 treat the --behaviour-dsl-options-file command line option
virtual void treatModelDSLOptionsFile ()
 treat the --model-dsl-options-file command line option
virtual void treatReportWarnings ()
 treat the --report-warnings command line option
virtual void treatWarningError ()
 treat the --warning-error command line option
virtual void treatDebug ()
 treat the --debug command line option
virtual void treatPedantic ()
 treat the --pedantic command line option
virtual void treatInterface ()
 treat the --interface command line option
virtual void treatMaterialIdentifier ()
 treat the --material-identifier command line option
virtual void treatMaterialPropertyIdentifier ()
 treat the --material-property command line option
virtual void treatAllMaterialProperties ()
 treat the --all-material-properties command line option
virtual void treatBehaviourIdentifier ()
 treat the --behaviour command line option
virtual void treatAllBehaviours ()
 treat the --all-behaviours command line option
virtual void treatModelIdentifier ()
 treat the --model command line option
virtual void treatAllModels ()
 treat the --all-models command line option

Protected Attributes

enum mfront::MFront:: { ... }  generator = MAKE
TargetsDescription targets
 description of the targets that can be build
GeneratorOptions opts
 generator options
std::set< std::string > specifiedTargets
 targets to be build as specified by the user
std::set< std::string > defines
 macros defined by the user on the command line
bool genMake = false
bool buildLibs = false
bool cleanLibs = false
Protected Attributes inherited from tfel::utilities::ArgumentParser
CallBacksContainer callBacksContainer
 container of all the call-backs
AliasContainer alias
 container of all the alias
ArgsContainer args
 container of all the command line arguments
ArgsContainer::iterator currentArgument
 an iterator to the argument being treated
std::string programName
 program name
Protected Attributes inherited from mfront::MFrontBase
std::vector< std::string > ecmds
 external commands specified on the command line through an --@XXX option. Those external commands are applied to all input files.
std::map< std::string, std::string > substitutions
 substitutions specified on the command line through an --@XXX@=YYY option: every occurrence of XXX in the input files will be replaced by YYY
std::string material_identifier
 material identifier for the next input file
std::string material_property_identifier
 material property identifier for the next input file
std::string behaviour_identifier
 behaviour identifier for the next input file
std::string model_identifier
 model identifier for the next input file
std::set< std::string > inputs
 list of all input files
std::set< std::string > interfaces
 list of interfaces declared on the command line or explicitely added through the set interface method.

Friends

struct tfel::utilities::ArgumentParserBase< MFront >

Additional Inherited Members

Public Types inherited from tfel::utilities::ArgumentParserBase< MFront >
using MemberFuncPtr
 a simple alias
Public Types inherited from tfel::utilities::ArgumentParser
using CallBacksContainer = std::map<std::string, CallBack>
 a simple alias
Static Public Member Functions inherited from mfront::MFrontBase
static std::shared_ptr< AbstractDSL > getDSL (const std::string &, const tfel::utilities::DataMap &={})
static std::shared_ptr< AbstractDSL > getDSL (tfel::utilities::CxxTokenizer::const_iterator, const tfel::utilities::CxxTokenizer::const_iterator, const tfel::utilities::DataMap &={})
static void addDSLOption (const std::string &)
 add a new DSL option
static void addMaterialPropertyDSLOption (const std::string &)
 add a new material property DSL option
static void addBehaviourDSLOption (const std::string &)
 add a new behaviour DSL option
static void addModelDSLOption (const std::string &)
 add a new model DSL option
static void parseDSLOptionsFile (const std::string &)
 parse a DSL options file
static void parseMaterialPropertyDSLOptionsFile (const std::string &)
 parse a DSL options file
static void parseBehaviourDSLOptionsFile (const std::string &)
 parse a DSL options file
static void parseModelDSLOptionsFile (const std::string &)
 parse a DSL options file

Detailed Description

the main class of MFront

Constructor & Destructor Documentation

◆ MFront()

mfront::MFront::MFront ( const int ,
const char *const * const  )

constructor

Parameters
[in]argc: number of command line arguments
[in]argv: command line arguments

Member Function Documentation

◆ getCurrentCommandLineArgument()

const tfel::utilities::Argument & mfront::MFront::getCurrentCommandLineArgument ( ) const
nodiscardfinalprotectedvirtual

return the current argument

Implements mfront::MFrontBase.

◆ getUsageDescription()

std::string mfront::MFront::getUsageDescription ( ) const
nodiscardfinalprotectedvirtual

get the usage description

Implements tfel::utilities::ArgumentParser.

◆ getVersionDescription()

std::string mfront::MFront::getVersionDescription ( ) const
nodiscardfinalprotectedvirtual

get the version description

Implements tfel::utilities::ArgumentParser.

◆ treatFile()

virtual TargetsDescription mfront::MFront::treatFile ( const std::string & ,
const tfel::utilities::DataMap & = {} ) const
nodiscardvirtual

treat a file (analyse and generate output files)

Parameters
[in]f: file name
[in]dsl_options: options passed to the domain specific language
Returns
the target's description

◆ treatUnknownArgument()

void mfront::MFront::treatUnknownArgument ( )
finalprotectedvirtual

treat an unknown argument

Reimplemented from tfel::utilities::ArgumentParser.


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