OpenWalnut
1.5.0dev
|
This class is the abstract interface to all the possible inputs a WDataModule might handle. More...
#include <WDataModuleInput.h>
Public Types | |
typedef std::shared_ptr< WDataModuleInput > | SPtr |
Convenience typedef for a std::shared_ptr< WDataModuleInput >. More... | |
typedef std::shared_ptr< const WDataModuleInput > | ConstSPtr |
Convenience typedef for a std::shared_ptr< const WDataModuleInput >. More... | |
Public Member Functions | |
WDataModuleInput () | |
Default constructor. More... | |
virtual | ~WDataModuleInput () |
Destructor. More... | |
virtual std::string | getName () const =0 |
Return a unique name for this input type. More... | |
virtual std::string | asString () const =0 |
Return a human-readable form of the input. More... | |
virtual std::string | getExtendedInfo () const |
Return some extend information for the input, like complete path, server data (username, subject name, ...). More... | |
virtual std::ostream & | serialize (std::ostream &out) const =0 |
Write a machine-readable string which allows to restore your specific input later. More... | |
Static Public Member Functions | |
static SPtr | create (std::string name, std::string parameter) |
Create an instance by using a parameter string. More... | |
This class is the abstract interface to all the possible inputs a WDataModule might handle.
The classes can be specialized into streamed inputs, file inputs and similar.
Definition at line 37 of file WDataModuleInput.h.
typedef std::shared_ptr< const WDataModuleInput > WDataModuleInput::ConstSPtr |
Convenience typedef for a std::shared_ptr< const WDataModuleInput >.
Definition at line 48 of file WDataModuleInput.h.
typedef std::shared_ptr< WDataModuleInput > WDataModuleInput::SPtr |
Convenience typedef for a std::shared_ptr< WDataModuleInput >.
Definition at line 43 of file WDataModuleInput.h.
WDataModuleInput::WDataModuleInput | ( | ) |
Default constructor.
Definition at line 32 of file WDataModuleInput.cpp.
|
virtual |
Destructor.
Definition at line 37 of file WDataModuleInput.cpp.
|
pure virtual |
Return a human-readable form of the input.
Like filenames, server names and similar.
Implemented in WDataModuleInputFile.
|
static |
Create an instance by using a parameter string.
This is the string you define by the serialize() call.
parameter | the parameter string |
name | the name string |
Definition at line 42 of file WDataModuleInput.cpp.
References wlog::error().
Referenced by WModuleProjectFileCombiner::parse().
|
virtual |
Return some extend information for the input, like complete path, server data (username, subject name, ...).
It is up to you.
Reimplemented in WDataModuleInputFile.
Definition at line 55 of file WDataModuleInput.cpp.
|
pure virtual |
Return a unique name for this input type.
This is used to identify a certain input later.
Implemented in WDataModuleInputFile.
|
pure virtual |
Write a machine-readable string which allows to restore your specific input later.
No line-breaks, no ":" and it must not be empty.
out | the stream to serialize to |
Implemented in WDataModuleInputFile.