oaDir Class Reference

Inheritance diagram for oaDir:

oaFSComponent


Public Methods

 oaDir (const oaString &nameIn)
virtual ~oaDir ()
void create () const
virtual oaBoolean exists () const
oaBoolean isEmpty () const
oaBoolean isCWD () const

Detailed Description

The oaDir utility class implements a class for managing a file system component that is a directory.


Constructor & Destructor Documentation

oaDir::oaDir const oaString &    nameIn [inline]
 

This is the constructor for the oaDir class.

Parameters:
nameIn Path to the directory. The path may be relative to the current working directory, or a fully qualified path name.

oaDir::~oaDir   [inline, virtual]
 

This is the destructor for the oaDir class.


Member Function Documentation

void oaDir::create   const
 

This function creates the directory on disk. It assumes that the directory does not exist.

Exceptions:
oacDirCreateFailed 

oaBoolean oaDir::exists   const [virtual]
 

This function returns true if the file system object associated with the name exists on disk and is a directory.

Reimplemented from oaFSComponent.

oaBoolean oaDir::isCWD   const
 

This function returns true if the directory is the current working directory.

oaBoolean oaDir::isEmpty   const
 

This function returns true if this directory does not contain any files or subdirectories.


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

Return to top of page