![]() |
OpenWalnut
1.5.0dev
|
This class is the abstract interface allowing WDataModule to define possible supported WDataModuleInput. More...
#include <WDataModuleInputFilter.h>
Inheritance diagram for WDataModuleInputFilter:
Collaboration diagram for WDataModuleInputFilter:Public Types | |
| typedef std::shared_ptr< WDataModuleInputFilter > | SPtr |
| Convenience typedef for a std::shared_ptr< WDataModuleInputFilter >. More... | |
| typedef std::shared_ptr< const WDataModuleInputFilter > | ConstSPtr |
| Convenience typedef for a std::shared_ptr< const WDataModuleInputFilter >. More... | |
Public Member Functions | |
| WDataModuleInputFilter (std::string description) | |
| Default constructor. More... | |
| virtual | ~WDataModuleInputFilter () |
| Destructor. More... | |
| virtual bool | matches (WDataModuleInput::ConstSPtr input) const =0 |
| Check whether the filter matches the input or not. More... | |
| const std::string & | getDescription () const |
| Return the description of this filter. More... | |
Private Attributes | |
| std::string | m_description |
| The description of the filter. More... | |
This class is the abstract interface allowing WDataModule to define possible supported WDataModuleInput.
Definition at line 37 of file WDataModuleInputFilter.h.
| typedef std::shared_ptr< const WDataModuleInputFilter > WDataModuleInputFilter::ConstSPtr |
Convenience typedef for a std::shared_ptr< const WDataModuleInputFilter >.
Definition at line 48 of file WDataModuleInputFilter.h.
| typedef std::shared_ptr< WDataModuleInputFilter > WDataModuleInputFilter::SPtr |
Convenience typedef for a std::shared_ptr< WDataModuleInputFilter >.
Definition at line 43 of file WDataModuleInputFilter.h.
|
explicit |
Default constructor.
Always provide a useful description!
| description | a useful description |
Definition at line 29 of file WDataModuleInputFilter.cpp.
|
virtual |
Destructor.
Definition at line 35 of file WDataModuleInputFilter.cpp.
| const std::string & WDataModuleInputFilter::getDescription | ( | ) | const |
Return the description of this filter.
Definition at line 40 of file WDataModuleInputFilter.cpp.
References m_description.
|
pure virtual |
Check whether the filter matches the input or not.
You can check contents of the file/stream/... if you like to be more accurate.
| input | the input to check against. |
Implemented in WDataModuleInputFilterFile.
|
private |
The description of the filter.
Definition at line 82 of file WDataModuleInputFilter.h.
Referenced by getDescription().