|
libCombine
C++ library for working with the COMBINE Archive format
|
Static Public Member Functions | |
| static std::string | getTempPath () |
| static std::string | getTempFilename (const std::string &prefix="temp", const std::string &ext=".tmp") |
| constructs a new temp file name using the current milliseconds. More... | |
| static unsigned long | getCurrentMilliseconds () |
| static void | copyFile (const std::string &source, const std::string &destination) |
| copies the source file to the destination More... | |
| static void | copyStream (std::istream &in, std::ostream &out) |
| copies in to out More... | |
| static std::string | getExtension (const std::string &fileName) |
| returns the extension of the given filename (not including the dot) More... | |
| static bool | removeFileOrFolder (const std::string &path) |
| Removes the specified file or folder. More... | |
| static std::string | getDefaultTempDir () |
| Get the Default Temp Dir object. More... | |
| static void | setDefaultTempDir (const std::string &defaultDir) |
| Set the Default Temp Dir object. More... | |
|
static |
copies the source file to the destination
| source | source file name |
| destination | destination file name |
|
static |
copies in to out
| in | input stream |
| out | output stream |
|
static |
|
static |
Get the Default Temp Dir object.
|
static |
returns the extension of the given filename (not including the dot)
| fileName | the filename |
|
static |
constructs a new temp file name using the current milliseconds.
The format of the temp file will be:
temp_path + "/" + prefix + milliseconds + ext
| prefix | optional prefix to be used (will be "temp" otherwise) |
| ext | optional extension to be used (will be ".tmp" otherwise) |
|
static |
|
static |
Removes the specified file or folder.
If it is a folder its contents will be removed recursively.
|
static |
Set the Default Temp Dir object.
| defaultDir | the default directory |