B2BITS FIX Antenna HFT
1.0.17
|
An representation of file and directory pathnames. More...
#include <File.h>
Static Public Member Functions | |
static int | chsize (FILE *fd, long length) |
Changes file size. More... | |
static int | chsize64 (FILE *fd, long long length) |
static void | createEmpty (const std::string &path) |
Creates new empty file. More... | |
static std::string | createUniqueName (const std::string &prefix, const std::string &ext) |
static void | deleteFile (const std::string &fileName) |
Deletes an existing file. More... | |
static bool | doesExist (const std::string &path) |
Checks if the given file already exists. More... | |
static std::string | getCurrentDirectory () |
Returns current directory path. More... | |
static long | getNameMax (const std::string &path) |
Returns the maximum number of bytes in the given filename. More... | |
static bool | isAbsolutePath (const std::string &path) |
Checks if the given file path is an absolute one. More... | |
static void | moveFile (const std::string &existingFileName, const std::string &newFileName) |
Moves an existing file. More... | |
static void | setFlags (int aFd, int aFlags) |
Sets the given file's flags. More... | |
static void | setOFileToMax () |
Sets the maximum number of open files per process to the maximum value. More... | |
static void | split (std::string const &fullFileName, std::string *fileName, std::string *extention) |
Splits full file name into file name and extention. More... | |
An representation of file and directory pathnames.
|
static |
Changes file size.
fd | File descriptor. Must be not NULL. |
length | New file length. |
System::Exception | if input parameters are incorrect. |
|
static |
|
static |
Creates new empty file.
|
static |
|
static |
|
static |
Checks if the given file already exists.
Referenced by FixProtocols::loadProtocolFile().
|
static |
Returns current directory path.
|
static |
Returns the maximum number of bytes in the given filename.
SystemException |
|
static |
Checks if the given file path is an absolute one.
Referenced by FixProtocols::loadProtocolFile().
|
static |
|
static |
Sets the given file's flags.
aFd | an open file descriptor. |
aFlags | file status flags to turn on. |
|
static |
Sets the maximum number of open files per process to the maximum value.
SystemException |
|
static |
Splits full file name into file name and extention.
Extention part will contain "." (dot) character.