ALBA
Public Member Functions | Protected Attributes | List of all members
albaDirectory Class Reference

#include <albaDirectory.h>

Inheritance diagram for albaDirectory:
Inheritance graph
[legend]
Collaboration diagram for albaDirectory:
Collaboration graph
[legend]

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 albaObjectNewObjectInstance () const =0
 
virtual const albaTypeIDGetTypeId () 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 albaTypeIDGetStaticTypeId ()
 
static albaObjectSafeDownCast (albaObject *o)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ albaDirectory()

albaDirectory::albaDirectory ( )

◆ ~albaDirectory()

albaDirectory::~albaDirectory ( )

Member Function Documentation

◆ albaTypeMacro()

albaDirectory::albaTypeMacro ( albaDirectory  ,
albaObject   
)

◆ Load()

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.

◆ GetNumberOfFiles()

int albaDirectory::GetNumberOfFiles ( )
inline

Return the number of files in the current directory.

Definition at line 50 of file albaDirectory.h.

◆ GetFile()

const char * albaDirectory::GetFile ( int  index)

Return the file at the given index, the indexing is 0 based.

Member Data Documentation

◆ m_Files

std::vector<wxString> albaDirectory::m_Files
protected

Definition at line 58 of file albaDirectory.h.

◆ m_Path

wxString albaDirectory::m_Path
protected

Definition at line 59 of file albaDirectory.h.


The documentation for this class was generated from the following file: