|
ALBA
|
#include <albaDirectory.h>


Public Member Functions | |
| albaDirectory () | |
| ~albaDirectory () | |
| albaTypeMacro (albaDirectory, albaObject) | |
| bool | Load (const char *dir) |
| int | GetNumberOfFiles () |
| const char * | GetFile (int index) |
Public Member Functions inherited from albaObject | |
| albaObject () | |
| virtual | ~albaObject () |
| virtual void | Delete () |
| virtual const char * | GetTypeName () const |
| virtual bool | IsA (const char *type_name) const |
| virtual bool | IsA (const albaTypeID &type_id) const |
| virtual albaObject * | NewObjectInstance () const =0 |
| virtual const albaTypeID & | GetTypeId () const |
| virtual void | Print (std::ostream &os, const int indent=0) const |
| albaObject (const albaObject &c) | |
Protected Attributes | |
| std::vector< wxString > | m_Files |
| wxString | m_Path |
Protected Attributes inherited from albaObject | |
| bool | m_HeapFlag |
Additional Inherited Members | |
Static Public Member Functions inherited from albaObject | |
| static const char * | GetStaticTypeName () |
| static bool | IsStaticType (const char *type_name) |
| static bool | IsStaticType (const albaTypeID &type_id) |
| static const albaTypeID & | GetStaticTypeId () |
| static albaObject * | SafeDownCast (albaObject *o) |
Portable directory/filename traversal.
albaDirectory provides a portable way of finding the names of the files in a system directory. albaDirectory works with windows and unix only.
Definition at line 35 of file albaDirectory.h.
| albaDirectory::albaDirectory | ( | ) |
| albaDirectory::~albaDirectory | ( | ) |
| albaDirectory::albaTypeMacro | ( | albaDirectory | , |
| albaObject | |||
| ) |
| bool albaDirectory::Load | ( | const char * | dir | ) |
Load the specified directory and load the names of the files in that directory.
"false" is returned if the directory can not be opened, "true" if it is opened.
|
inline |
Return the number of files in the current directory.
Definition at line 50 of file albaDirectory.h.
| const char * albaDirectory::GetFile | ( | int | index | ) |
Return the file at the given index, the indexing is 0 based.
|
protected |
Definition at line 58 of file albaDirectory.h.
|
protected |
Definition at line 59 of file albaDirectory.h.