Filesys::Directory Class Reference

#include <Filesys.h>

Description

The container for managing directory objects.

Functions

std::string GetNextName ()
 
void ResetPosition ()
 
int Size ()
 
Directoryoperator>> (std::string &str)
 
bool AtEnd ()
 
bool operator() ()
 
bool Query (const std::string &target)
 
bool IsFile (const std::string &obj)
 

Member Function Documentation

std::string GetNextName ( )

Pulls the next directory name from the list. The order of the elements in the list depends on the operating system, but it will most likely be alphabetical.

void ResetPosition ( )

Resets the reading position to the first name on the list.

int Size ( )

Returns the number of names contained within the directory.

Directory& operator>> ( std::string &  str)

Equivalent to getNextName().

bool AtEnd ( )

Returns if all files have been exhausted.

bool operator() ( )

Equivalent to atEnd()

bool Query ( const std::string &  target)

Returns whether or not target exists.

bool IsFile ( const std::string &  obj)

Returns whether or nor obj is a file. PROTIP: if the Filesys::Object is not a file, it is most likely a directory!


The documentation for this class was generated from the following file:
  • /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Util/Filesys.h