|
Exiv2
|
Provides binary IO for the data from stdin and data uri path. More...
#include <basicio.hpp>
Inheritance diagram for Exiv2::XPathIo:
Collaboration diagram for Exiv2::XPathIo:Public Member Functions | |
Creators | |
| XPathIo (const std::string &orgPath) | |
| Default constructor that reads data from stdin/data uri path and writes them to the temp file. | |
| virtual | ~XPathIo () |
| Destructor. Releases all managed memory and removes the temp file. | |
Manipulators | |
| virtual void | transfer (BasicIo &src) |
| Change the name of the temp file and make it untemporary before calling the method of superclass FileIo::transfer. | |
Static Public Member Functions | |
Static methods | |
| static std::string | writeDataToFile (const std::string &orgPath) |
| Read the data from stdin/data uri path and write them to the file. | |
Static Public Attributes | |
| static const std::string | TEMP_FILE_EXT = ".exiv2_temp" |
| The extension of the temporary file which is created when getting input data to read metadata. This file will be deleted in destructor. | |
| static const std::string | GEN_FILE_EXT = ".exiv2" |
| The extension of the generated file which is created when getting input data to add or modify the metadata. | |
Provides binary IO for the data from stdin and data uri path.
| std::string Exiv2::XPathIo::writeDataToFile | ( | const std::string & | orgPath | ) | [static] |
Read the data from stdin/data uri path and write them to the file.
| orgPath | It equals "-" if the input data's from stdin. Otherwise, it's data uri path. |
| Error | if it fails. |
References Exiv2::base64decode(), Exiv2::fileProtocol(), Exiv2::FileIo::path(), Exiv2::string, TEMP_FILE_EXT, and Exiv2::time.
1.7.3