#include <FileSystemMockObject.hpp>
Public Member Functions | |
| virtual | ~FileSystemMockObject () |
| virtual File | openFile (const String &path) |
| virtual File | createFile (const String &path) |
| virtual File | openOrCreateFile (const String &path) |
| virtual File | openForAppendOrCreateFile (const String &path) |
| virtual File | createTempFile (const String &dir) |
| virtual File | createTempFile (String &filePath, const String &dir) |
| virtual int | changeFileOwner (const String &filename, const UserId &userId) |
| virtual bool | exists (const String &path) |
| virtual bool | isExecutable (const String &path) |
| virtual bool | canRead (const String &path) |
| virtual bool | canWrite (const String &path) |
| virtual bool | isLink (const String &path) |
| virtual bool | isDirectory (const String &path) |
| virtual bool | changeDirectory (const String &path) |
| virtual bool | makeDirectory (const String &path, int mode=0777) |
| virtual bool | getFileSize (const String &path, Int64 &size) |
| virtual UInt64 | fileSize (FileHandle fh) |
| virtual bool | removeDirectory (const String &path) |
| virtual bool | removeFile (const String &path) |
| virtual bool | getDirectoryContents (const String &path, StringArray &dirEntries) |
| virtual bool | renameFile (const String &oldFileName, const String &newFileName) |
| virtual size_t | read (const FileHandle &hdl, void *bfr, size_t numberOfBytes, Int64 offset=-1L) |
| virtual size_t | write (FileHandle hdl, const void *bfr, size_t numberOfBytes, Int64 offset=-1L) |
| virtual Int64 | seek (const FileHandle &hdl, Int64 offset, int whence) |
| virtual Int64 | tell (const FileHandle &hdl) |
| virtual void | rewind (const FileHandle &hdl) |
| virtual int | close (const FileHandle &hdl) |
| virtual int | flush (FileHandle &hdl) |
| virtual String | getFileContents (const String &filename) |
| virtual StringArray | getFileLines (const String &filename) |
| virtual String | readSymbolicLink (const String &path) |
| virtual String | realPath (const String &path) |
| virtual std::pair < FileSystem::Path::ESecurity, String > | security (String const &path, UserId uid) |
| virtual std::pair < FileSystem::Path::ESecurity, String > | security (String const &path) |
| virtual std::pair < FileSystem::Path::ESecurity, String > | security (String const &base_dir, String const &rel_path, UserId uid) |
| virtual std::pair < FileSystem::Path::ESecurity, String > | security (String const &base_dir, String const &rel_path) |
| virtual String | dirname (const String &filename) |
| virtual String | basename (const String &filename) |
| virtual String | getCurrentWorkingDirectory () |
Definition at line 52 of file FileSystemMockObject.hpp.
| BLOCXX_NAMESPACE::FileSystemMockObject::~FileSystemMockObject | ( | ) | [virtual] |
Definition at line 51 of file FileSystemMockObject.cpp.
| bool BLOCXX_NAMESPACE::FileSystemMockObject::exists | ( | const String & | path | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::isExecutable | ( | const String & | path | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::canRead | ( | const String & | path | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::canWrite | ( | const String & | path | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::isLink | ( | const String & | path | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::isDirectory | ( | const String & | path | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::changeDirectory | ( | const String & | path | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::makeDirectory | ( | const String & | path, | |
| int | mode = 0777 | |||
| ) | [virtual] |
| UInt64 BLOCXX_NAMESPACE::FileSystemMockObject::fileSize | ( | FileHandle | fh | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::removeDirectory | ( | const String & | path | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::removeFile | ( | const String & | path | ) | [virtual] |
| bool BLOCXX_NAMESPACE::FileSystemMockObject::getDirectoryContents | ( | const String & | path, | |
| StringArray & | dirEntries | |||
| ) | [virtual] |
| size_t BLOCXX_NAMESPACE::FileSystemMockObject::read | ( | const FileHandle & | hdl, | |
| void * | bfr, | |||
| size_t | numberOfBytes, | |||
| Int64 | offset = -1L | |||
| ) | [virtual] |
| size_t BLOCXX_NAMESPACE::FileSystemMockObject::write | ( | FileHandle | hdl, | |
| const void * | bfr, | |||
| size_t | numberOfBytes, | |||
| Int64 | offset = -1L | |||
| ) | [virtual] |
| Int64 BLOCXX_NAMESPACE::FileSystemMockObject::seek | ( | const FileHandle & | hdl, | |
| Int64 | offset, | |||
| int | whence | |||
| ) | [virtual] |
| Int64 BLOCXX_NAMESPACE::FileSystemMockObject::tell | ( | const FileHandle & | hdl | ) | [virtual] |
| void BLOCXX_NAMESPACE::FileSystemMockObject::rewind | ( | const FileHandle & | hdl | ) | [virtual] |
| int BLOCXX_NAMESPACE::FileSystemMockObject::close | ( | const FileHandle & | hdl | ) | [virtual] |
| int BLOCXX_NAMESPACE::FileSystemMockObject::flush | ( | FileHandle & | hdl | ) | [virtual] |
| StringArray BLOCXX_NAMESPACE::FileSystemMockObject::getFileLines | ( | const String & | filename | ) | [virtual] |
| std::pair< FileSystem::Path::ESecurity, String > BLOCXX_NAMESPACE::FileSystemMockObject::security | ( | String const & | path, | |
| UserId | uid | |||
| ) | [virtual] |
| std::pair< FileSystem::Path::ESecurity, String > BLOCXX_NAMESPACE::FileSystemMockObject::security | ( | String const & | path | ) | [virtual] |
| std::pair< FileSystem::Path::ESecurity, String > BLOCXX_NAMESPACE::FileSystemMockObject::security | ( | String const & | base_dir, | |
| String const & | rel_path, | |||
| UserId | uid | |||
| ) | [virtual] |
| std::pair< FileSystem::Path::ESecurity, String > BLOCXX_NAMESPACE::FileSystemMockObject::security | ( | String const & | base_dir, | |
| String const & | rel_path | |||
| ) | [virtual] |
| String BLOCXX_NAMESPACE::FileSystemMockObject::getCurrentWorkingDirectory | ( | ) | [virtual] |
1.5.6