tfel
Loading...
Searching...
No Matches
mfront::DocumentationGeneratorBase Struct Referenceabstract

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

Inheritance diagram for mfront::DocumentationGeneratorBase:
tfel::utilities::ArgumentParserBase< DocumentationGeneratorBase > mfront::MFrontBase tfel::utilities::ArgumentParser mfront::BehaviourDocumentationGenerator mfront::MaterialPropertyDocumentationGenerator

Classes

struct  VariableInformationBase
 data structure describing a variable More...

Public Types

enum  OutputType { FULL , WEB }
 type of documentation to be generated
Public Types inherited from tfel::utilities::ArgumentParserBase< DocumentationGeneratorBase >
using MemberFuncPtr
 a simple alias
Public Types inherited from tfel::utilities::ArgumentParser
using CallBacksContainer = std::map<std::string, CallBack>
 a simple alias

Public Member Functions

 DocumentationGeneratorBase (const int, const char *const *const, const std::string &)
virtual void exe () const =0
 ~DocumentationGeneratorBase () override
 destructor
Public Member Functions inherited from tfel::utilities::ArgumentParserBase< DocumentationGeneratorBase >
 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

Static Public Member Functions

static void writeStandardLatexMacros (std::ostream &)
 generate latex macros for header of output file
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

Public Attributes

std::string file
 input file name
bool standalone = false
 boolean whose meaning is the following:
bool std_output = false
 generate output on standard output
OutputType otype
 type of ouput

Friends

struct tfel::utilities::ArgumentParserBase< DocumentationGeneratorBase >
 ArgumentParserBase must be a friend.

Additional Inherited Members

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 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 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.

Detailed Description

Class used by the mfront-query tool to extract information from behaviour implementation

Constructor & Destructor Documentation

◆ DocumentationGeneratorBase()

mfront::DocumentationGeneratorBase::DocumentationGeneratorBase ( const int ,
const char *const * const ,
const std::string &  )

build a DocumentationGeneratorBase object based on command line arguments

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

Member Function Documentation

◆ exe()

virtual void mfront::DocumentationGeneratorBase::exe ( ) const
pure virtual

Member Data Documentation

◆ standalone

bool mfront::DocumentationGeneratorBase::standalone = false

boolean whose meaning is the following:

  • if true, the generated documentation is contained in a whole document.
  • if false, the generated documentation is contained in a section meant to be included in a bigger document.

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