OpenWalnut
1.5.0dev
|
Base class for all possible kinds of requirements. More...
#include <WRequirement.h>
Public Member Functions | |
WRequirement () | |
Default constructor. More... | |
virtual | ~WRequirement () |
Destructor. More... | |
virtual bool | isComplied () const =0 |
Checks if the requirement is fulfilled on the system. More... | |
virtual std::string | getDescription () const =0 |
Return a nice description of the requirement. More... | |
Base class for all possible kinds of requirements.
Derive your own kind of requirement from this class. This allows easy checking of required features on a target system. Of course this is only useful for things checkable during runtime. You should avoid writing classes for checking weather some library is installed or not. This is checked by the linker on the target system.
Definition at line 37 of file WRequirement.h.
WRequirement::WRequirement | ( | ) |
Default constructor.
Definition at line 27 of file WRequirement.cpp.
|
virtual |
Destructor.
Definition at line 32 of file WRequirement.cpp.
|
pure virtual |
Return a nice description of the requirement.
Implemented in WUIRequirement, WPrototypeRequirement, and WGERequirement.
|
pure virtual |
Checks if the requirement is fulfilled on the system.
Implement this for your specific case.
Implemented in WUIRequirement, WPrototypeRequirement, and WGERequirement.