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

Public Types

typedef std::shared_ptr< AbstractBehaviourInterface >(* InterfaceCreator) ()

Public Member Functions

 BehaviourInterfaceFactory (const BehaviourInterfaceFactory &)=delete
 BehaviourInterfaceFactory (BehaviourInterfaceFactory &&)=delete
BehaviourInterfaceFactory & operator= (const BehaviourInterfaceFactory &)=delete
BehaviourInterfaceFactory & operator= (BehaviourInterfaceFactory &&)=delete
std::vector< std::string > getRegistredInterfaces () const
bool exists (const std::string &) const
std::string getUniqueNameFromAlias (const std::string &) const
std::shared_ptr< AbstractBehaviourInterface > getInterface (const std::string &)
void registerInterfaceCreator (const std::string &, InterfaceCreator)
void registerInterfaceAlias (const std::string &, const std::string &)
 ~BehaviourInterfaceFactory ()
 destructor

Static Public Member Functions

static BehaviourInterfaceFactory & getBehaviourInterfaceFactory ()

Member Function Documentation

◆ exists()

bool mfront::BehaviourInterfaceFactory::exists ( const std::string & ) const
nodiscard
Returns
true if the given interface exists
Parameters
[in]n: interface name

◆ getInterface()

std::shared_ptr< AbstractBehaviourInterface > mfront::BehaviourInterfaceFactory::getInterface ( const std::string & )
nodiscard
Returns
a newly created interface
Parameters
[in]n: interface name

◆ getUniqueNameFromAlias()

std::string mfront::BehaviourInterfaceFactory::getUniqueNameFromAlias ( const std::string & ) const
Returns
the unique name associated with the interface
Parameters
[in]ninterface name

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