Documentation for OpenFLUID
2.2.0
|
#include <machine/ObserverRegistry.hpp>
Public Member Functions | |
bool | addWare (const openfluid::ware::WareID_t &ID) |
void | discoverWares (const std::string IDPattern="") |
void | clear () |
![]() | |
void | clearWares () |
const WareContainer< openfluid::ware::ObserverSignature > & | wareContainer (const openfluid::ware::WareID_t &ID) const |
const WaresByID_t & | availableWares () const |
const WaresByPath_t & | erroredWares () const |
bool | hasAvailableWare (const openfluid::ware::WareID_t &ID) const |
Additional Inherited Members | |
![]() | |
using | WaresByID_t = std::map< openfluid::ware::WareID_t, WareContainer< openfluid::ware::ObserverSignature > > |
using | WaresByPath_t = std::map< std::string, WareContainer< openfluid::ware::ObserverSignature > > |
![]() | |
virtual | ~WareRegistry () |
bool | add (WareContainer< openfluid::ware::ObserverSignature > Container) |
![]() | |
WaresByID_t | m_AvailableWares |
WaresByPath_t | m_ErroredWares |
WareContainer< openfluid::ware::ObserverSignature > | m_InvalidWareContainer |
|
virtual |
Loads an observer ware and adds it in the registry if everything went fine
[in] | ID | the ID of the ware to load |
Implements openfluid::machine::WareRegistry< openfluid::ware::ObserverSignature >.
|
inlinevirtual |
Clears the registry
Implements openfluid::machine::WareRegistry< openfluid::ware::ObserverSignature >.
|
virtual |
Automatically discovers observer wares and adds it in the registry, optionally filtered on IDs using a given pattern
[in] | IDPattern | the pattern to filter the wares on ID. Default is empty (no filtering) |
Implements openfluid::machine::WareRegistry< openfluid::ware::ObserverSignature >.