|
OpenWalnut 1.2.5
|
This requirement ensures that the specified prototype exists in the factory. More...
#include <WPrototypeRequirement.h>
Inheritance diagram for WPrototypeRequirement:Public Member Functions | |
| WPrototypeRequirement (std::string prototype) | |
| Create instance. | |
| virtual | ~WPrototypeRequirement () |
| Destructor. | |
| virtual bool | isComplied () const |
| Checks if the requirement is fulfilled on the system. | |
| virtual std::string | getDescription () const |
| Return a nice description of the requirement. | |
Private Attributes | |
| std::string | m_prototype |
| The required prototype. | |
This requirement ensures that the specified prototype exists in the factory.
These requirements are especially useful for container modules.
Definition at line 36 of file WPrototypeRequirement.h.
| WPrototypeRequirement::WPrototypeRequirement | ( | std::string | prototype | ) | [explicit] |
Create instance.
If your module uses this requirement, it needs the specified module.
| prototype | the module needed. |
Definition at line 31 of file WPrototypeRequirement.cpp.
| WPrototypeRequirement::~WPrototypeRequirement | ( | ) | [virtual] |
Destructor.
Definition at line 38 of file WPrototypeRequirement.cpp.
| std::string WPrototypeRequirement::getDescription | ( | ) | const [virtual] |
Return a nice description of the requirement.
Implements WRequirement.
Definition at line 48 of file WPrototypeRequirement.cpp.
References m_prototype.
| bool WPrototypeRequirement::isComplied | ( | ) | const [virtual] |
Checks if the requirement is fulfilled on the system.
Implement this for your specific case.
Implements WRequirement.
Definition at line 43 of file WPrototypeRequirement.cpp.
References WModuleFactory::getModuleFactory(), and m_prototype.
std::string WPrototypeRequirement::m_prototype [private] |
The required prototype.
Definition at line 73 of file WPrototypeRequirement.h.
Referenced by getDescription(), and isComplied().
1.7.3