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

structure containing the results of the analysis of a MFront file. This structure is used to build the compilation rules for the libraries and specific targets defined by MFront interfaces. More...

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

Public Member Functions

 TargetsDescription (const TargetsDescription &)
 TargetsDescription (TargetsDescription &&) noexcept
LibraryDescription & getLibrary (const std::string &, const std::string &, const std::string &, const LibraryDescription::LibraryType)
LibraryDescription & getLibrary (const std::string &, const std::string &, const std::string &)
LibraryDescription & getLibrary (const std::string &, const std::string &)
LibraryDescription & getLibrary (const std::string &)
const LibraryDescription & getLibrary (const std::string &) const

Public Attributes

std::vector< std::string > headers
 generated headers
LibraryDescription::TargetSystem system = LibraryDescription::UNIX
 target system
LibraryDescription::LibraryType libraryType
 default library type
std::vector< LibraryDescription > libraries
 list of libraries to be generated
std::map< std::string, SpecificTargetDescription > specific_targets

Detailed Description

structure containing the results of the analysis of a MFront file. This structure is used to build the compilation rules for the libraries and specific targets defined by MFront interfaces.

Member Function Documentation

◆ getLibrary() [1/5]

LibraryDescription & mfront::TargetsDescription::getLibrary ( const std::string & )
nodiscard
Returns
the library description associated with the given library name or a newly created one if non existed.
Parameters
[in]n: name of the library searched

◆ getLibrary() [2/5]

const LibraryDescription & mfront::TargetsDescription::getLibrary ( const std::string & ) const
nodiscard
Returns
the library description associated with the given library name.
Parameters
[in]n: name of the library searched

◆ getLibrary() [3/5]

LibraryDescription & mfront::TargetsDescription::getLibrary ( const std::string & ,
const std::string &  )
nodiscard
Returns
the library description associated with the given library name or a newly created one if non existed.
Parameters
[in]n: name of the library searched
[in]p: library prefix

◆ getLibrary() [4/5]

LibraryDescription & mfront::TargetsDescription::getLibrary ( const std::string & ,
const std::string & ,
const std::string &  )
nodiscard
Returns
the library description associated with the given library name or a newly created one if non existed.
Parameters
[in]n: name of the library searched
[in]p: library prefix
[in]s: library suffix

◆ getLibrary() [5/5]

LibraryDescription & mfront::TargetsDescription::getLibrary ( const std::string & ,
const std::string & ,
const std::string & ,
const LibraryDescription::LibraryType  )
nodiscard
Returns
the library description associated with the given library name or a newly created one if non existed.
Parameters
[in]n: name of the library searched
[in]pr: library prefix
[in]s: library suffix
[in]t: library type
Note
If the the library already exists and the suffix and/or the type does not match, an exception is thrown

Member Data Documentation

◆ libraryType

LibraryDescription::LibraryType mfront::TargetsDescription::libraryType
Initial value:
=
LibraryDescription::SHARED_LIBRARY

default library type

◆ specific_targets

std::map<std::string, SpecificTargetDescription> mfront::TargetsDescription::specific_targets

Specific targets and associated dependencies to other targets (for example, mfront generated library) and commands required to build the target.

A specific target will define the following Makefile rule:

target : dep1 dep2 src1 src1...
cmd1
cmd2
....

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