Wt
4.12.1
|
A class that stores informations about data. More...
Public Member Functions | |
WDataInfo () | |
Creates an empty WDataInfo. | |
WDataInfo (const std::string &url, const std::string &filePath) | |
Creates a WDataInfo. More... | |
void | setFilePath (const std::string &filePath) |
Sets the file path. | |
std::string | filePath () const override |
Returns a path to a file containing the data. More... | |
void | setUrl (const std::string &url) |
Sets the URL. | |
std::string | url () const override |
Returns the URL of the data. More... | |
void | setDataUri (const std::string &dataUri) |
Sets the data formated as data URI. | |
std::string | dataUri () const override |
Returns the data in data URI format. More... | |
bool | hasFilePath () const override |
Returns whether this contains a file path. More... | |
bool | hasUrl () const override |
Returns whether this contains a url. More... | |
virtual bool | hasDataUri () const |
Returns whether this can return the data in data URI format. More... | |
![]() | |
virtual std::string | name () const |
Returns the name of the Data. More... | |
A class that stores informations about data.
This is a barebone version of WAbstractDataInfo. It simply stores the information given to it.
Wt::WDataInfo::WDataInfo | ( | const std::string & | url, |
const std::string & | filePath | ||
) |
|
overridevirtual |
Returns the data in data URI format.
Throws if the data URI is set to an empty string.
Reimplemented from Wt::WAbstractDataInfo.
|
overridevirtual |
Returns a path to a file containing the data.
Throws if the file path is set to an empty string.
Reimplemented from Wt::WAbstractDataInfo.
|
virtual |
Returns whether this can return the data in data URI format.
This returns whether dataUri() returns a non-empty string.
Reimplemented from Wt::WAbstractDataInfo.
|
overridevirtual |
Returns whether this contains a file path.
This returns whether filePath() returns a non-empty string.
Reimplemented from Wt::WAbstractDataInfo.
|
overridevirtual |
Returns whether this contains a url.
This returns whether url() returns a non-empty string.
Reimplemented from Wt::WAbstractDataInfo.
|
overridevirtual |
Returns the URL of the data.
Throws if the URL is set to an empty string.
Reimplemented from Wt::WAbstractDataInfo.