MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class for walking through the file system. More...
#include <mdsFileBrowser.h>
Classes | |
struct | SFileAttr |
File/Directory attributes. More... | |
Public Types | |
enum | { CLASS_OBJECT } |
Templates that require members of the CObject class can use this enum to check the existence. More... | |
enum | { HEAP_OBJECT = 0x70616568 } |
Signature used to recognize objects on the heap. More... | |
Public Member Functions | |
CFileBrowser (const std::string &sDirectory=std::string("")) | |
Constructor. | |
bool | findFirst (const std::string &sName, SFileAttr &Attributes) |
Look up the first item in a current working directory. | |
bool | findNext (SFileAttr &Attributes) |
Finds next item. | |
std::string | getDirectory () |
Returns current working directory. | |
int | getReferencesCount () const |
Returns the number of references. | |
bool | isOnHeap () const |
Returns true if the object is allocated on the heap. | |
MDS_SHAREDPTR (CFileBrowser) | |
Smart pointer type. | |
bool | setDirectory (const std::string &sDirectory) |
Sets the current working directory. | |
virtual | ~CFileBrowser () |
Destructor. | |
Static Public Member Functions | |
static void * | operator new (std::size_t Size) |
Allocates a new object on the heap. | |
Protected Member Functions | |
void | addReference () const |
Increase the reference counter. | |
bool | delReference () const |
Decrease the reference counter. | |
Protected Attributes | |
int | m_iHeapObject |
Flag initialized if the object is on the heap. | |
int | m_iReferences |
The number of references to the object. |
Class for walking through the file system.
anonymous enum [inherited] |
Templates that require members of the CObject class can use this enum to check the existence.
mds::sys::CFileBrowser::CFileBrowser | ( | const std::string & | sDirectory = std::string("") | ) |
Constructor.
virtual mds::sys::CFileBrowser::~CFileBrowser | ( | ) | [virtual] |
Destructor.
void mds::base::CObject::addReference | ( | ) | const [protected, inherited] |
Increase the reference counter.
bool mds::base::CObject::delReference | ( | ) | const [protected, inherited] |
Decrease the reference counter.
bool mds::sys::CFileBrowser::findFirst | ( | const std::string & | sName, |
SFileAttr & | Attributes | ||
) |
Look up the first item in a current working directory.
bool mds::sys::CFileBrowser::findNext | ( | SFileAttr & | Attributes | ) |
Finds next item.
std::string mds::sys::CFileBrowser::getDirectory | ( | ) |
Returns current working directory.
int mds::base::CObject::getReferencesCount | ( | ) | const [inherited] |
Returns the number of references.
bool mds::base::CObject::isOnHeap | ( | ) | const [inherited] |
Returns true if the object is allocated on the heap.
Smart pointer type.
static void* mds::base::CObject::operator new | ( | std::size_t | Size | ) | [static, inherited] |
Allocates a new object on the heap.
bool mds::sys::CFileBrowser::setDirectory | ( | const std::string & | sDirectory | ) |
Sets the current working directory.
int mds::base::CObject::m_iHeapObject [mutable, protected, inherited] |
Flag initialized if the object is on the heap.
int mds::base::CObject::m_iReferences [mutable, protected, inherited] |
The number of references to the object.