OpenWalnut
1.5.0dev
|
Implements a file based input for the WDataModule. More...
#include <WDataModuleInputFile.h>
Public Types | |
typedef std::shared_ptr< WDataModuleInputFile > | SPtr |
Convenience typedef for a std::shared_ptr< WDataModuleInputFile >. More... | |
typedef std::shared_ptr< const WDataModuleInputFile > | ConstSPtr |
Convenience typedef for a std::shared_ptr< const WDataModuleInputFile >. More... | |
Public Types inherited from WDataModuleInput | |
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 | |
WDataModuleInputFile (boost::filesystem::path fname) | |
Default constructor. More... | |
WDataModuleInputFile (std::string fname) | |
Default constructor. More... | |
virtual | ~WDataModuleInputFile () |
Destructor. More... | |
boost::filesystem::path | getFilename () const |
Get the filename to load. More... | |
virtual std::string | getName () const |
Return a unique name for this input type. More... | |
virtual std::string | asString () const |
The file input as human readable string. 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 |
Write a machine-readable string which allows to restore your specific input later. More... | |
Public Member Functions inherited from WDataModuleInput | |
WDataModuleInput () | |
Default constructor. More... | |
virtual | ~WDataModuleInput () |
Destructor. More... | |
Private Attributes | |
boost::filesystem::path | m_filename |
The filename to load. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from WDataModuleInput | |
static SPtr | create (std::string name, std::string parameter) |
Create an instance by using a parameter string. More... | |
Implements a file based input for the WDataModule.
Definition at line 39 of file WDataModuleInputFile.h.
typedef std::shared_ptr< const WDataModuleInputFile > WDataModuleInputFile::ConstSPtr |
Convenience typedef for a std::shared_ptr< const WDataModuleInputFile >.
Definition at line 50 of file WDataModuleInputFile.h.
typedef std::shared_ptr< WDataModuleInputFile > WDataModuleInputFile::SPtr |
Convenience typedef for a std::shared_ptr< WDataModuleInputFile >.
Definition at line 45 of file WDataModuleInputFile.h.
|
explicit |
Default constructor.
fname | the filename to use. |
Definition at line 29 of file WDataModuleInputFile.cpp.
|
explicit |
Default constructor.
fname | the filename to use. |
Definition at line 35 of file WDataModuleInputFile.cpp.
|
virtual |
Destructor.
Definition at line 41 of file WDataModuleInputFile.cpp.
|
virtual |
The file input as human readable string.
Implements WDataModuleInput.
Definition at line 51 of file WDataModuleInputFile.cpp.
References m_filename.
|
virtual |
Return some extend information for the input, like complete path, server data (username, subject name, ...).
It is up to you.
Reimplemented from WDataModuleInput.
Definition at line 68 of file WDataModuleInputFile.cpp.
References m_filename.
boost::filesystem::path WDataModuleInputFile::getFilename | ( | ) | const |
Get the filename to load.
Definition at line 46 of file WDataModuleInputFile.cpp.
References m_filename.
Referenced by WQtDataModuleInput::onChange().
|
virtual |
Return a unique name for this input type.
This is used to identify a certain input later.
Implements WDataModuleInput.
Definition at line 63 of file WDataModuleInputFile.cpp.
|
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 |
Implements WDataModuleInput.
Definition at line 56 of file WDataModuleInputFile.cpp.
|
private |
The filename to load.
Definition at line 112 of file WDataModuleInputFile.h.
Referenced by asString(), getExtendedInfo(), and getFilename().