Mantid
|
RAII: Gives a clean file destination and removes the file when handle is out of scope. More...
#include <FileResource.h>
Public Member Functions | |
FileResource (const std::string &fileName, bool debugMode=false) | |
std::string | fullPath () const |
void | setDebugMode (bool mode) |
~FileResource () | |
Static Protected Member Functions | |
static void * | operator new (std::size_t) |
static void * | operator new[] (std::size_t) |
Private Attributes | |
bool | m_debugMode |
boost::filesystem::path | m_full_path |
RAII: Gives a clean file destination and removes the file when handle is out of scope.
Must be stack allocated.
Definition at line 20 of file FileResource.h.
FileResource::FileResource | ( | const std::string & | fileName, |
bool | debugMode = false |
||
) |
Definition at line 11 of file FileResource.cpp.
References m_full_path.
FileResource::~FileResource | ( | ) |
Definition at line 32 of file FileResource.cpp.
References m_debugMode, and m_full_path.
std::string FileResource::fullPath | ( | ) | const |
Definition at line 30 of file FileResource.cpp.
References m_full_path.
|
staticprotected |
|
staticprotected |
void FileResource::setDebugMode | ( | bool | mode | ) |
Definition at line 29 of file FileResource.cpp.
References m_debugMode.
|
private |
Definition at line 29 of file FileResource.h.
Referenced by setDebugMode(), and ~FileResource().
|
private |
Definition at line 30 of file FileResource.h.
Referenced by FileResource(), fullPath(), and ~FileResource().