DirectoriesAndFiles Class Reference

the DirectoriesAndFiles class. More...

#include <OSOption.h>

List of all members.

Public Member Functions

 DirectoriesAndFiles ()
 Default constructor.
 ~DirectoriesAndFiles ()
 Class destructor.
bool IsEqual (DirectoriesAndFiles *that)
 A function to check for the equality of two objects.
bool setPath (int numberOfPaths, std::string *path)
 A function to set an array of <path> elements.
bool addPath (std::string path)
 A function to add a <path> element.

Public Attributes

int numberOfPaths
 the number of <path> children
std::string * path
 the list of directory and file paths


Detailed Description

the DirectoriesAndFiles class.

Author:
Robert Fourer, Gus Gassmann, Jun Ma, Kipp Martin
Version:
1.0, 21/07/2008
Since:
OS 1.1
Remarks:
A data structure class that corresponds to an xml element in the OSoL schema.

Definition at line 572 of file OSOption.h.


Constructor & Destructor Documentation

DirectoriesAndFiles::DirectoriesAndFiles (  ) 

Default constructor.

Definition at line 283 of file OSOption.cpp.

References path.

DirectoriesAndFiles::~DirectoriesAndFiles (  ) 

Class destructor.

Definition at line 292 of file OSOption.cpp.

References path.


Member Function Documentation

bool DirectoriesAndFiles::IsEqual ( DirectoriesAndFiles that  ) 

A function to check for the equality of two objects.

Definition at line 7293 of file OSOption.cpp.

References numberOfPaths, and path.

bool DirectoriesAndFiles::setPath ( int  numberOfPaths,
std::string *  path 
)

A function to set an array of <path> elements.

Parameters:
numberOfPaths,: number of <path> elements to be set
path,: the array of <path> elements that are to be set

Definition at line 3776 of file OSOption.cpp.

Referenced by OSOption::setDirectoriesToDelete(), OSOption::setDirectoriesToMake(), OSOption::setFilesToDelete(), OSOption::setFilesToMake(), OSOption::setRequiredDirectories(), and OSOption::setRequiredFiles().

bool DirectoriesAndFiles::addPath ( std::string  path  ) 

A function to add a <path> element.

Parameters:
path,: the path to be added

Definition at line 3806 of file OSOption.cpp.

References numberOfPaths.

Referenced by OSOption::setAnotherDirectoryToDelete(), OSOption::setAnotherDirectoryToMake(), OSOption::setAnotherFileToDelete(), OSOption::setAnotherFileToMake(), OSOption::setAnotherRequiredDirectory(), and OSOption::setAnotherRequiredFile().


Member Data Documentation

int DirectoriesAndFiles::numberOfPaths

the number of <path> children

Definition at line 576 of file OSOption.h.

Referenced by addPath(), OSOption::getNumberOfDirectoriesToDelete(), OSOption::getNumberOfDirectoriesToMake(), OSOption::getNumberOfFilesToDelete(), OSOption::getNumberOfFilesToMake(), OSOption::getNumberOfRequiredDirectories(), OSOption::getNumberOfRequiredFiles(), and IsEqual().

std::string* DirectoriesAndFiles::path

the list of directory and file paths

Definition at line 579 of file OSOption.h.

Referenced by DirectoriesAndFiles(), OSOption::getDirectoriesToDelete(), OSOption::getDirectoriesToMake(), OSOption::getFilesToDelete(), OSOption::getFilesToMake(), OSOption::getRequiredDirectories(), OSOption::getRequiredFiles(), IsEqual(), OSOption::setDirectoriesToDelete(), OSOption::setDirectoriesToMake(), OSOption::setFilesToDelete(), OSOption::setFilesToMake(), OSOption::setRequiredDirectories(), OSOption::setRequiredFiles(), and ~DirectoriesAndFiles().


The documentation for this class was generated from the following files:
Generated on Thu Aug 5 03:10:39 2010 by  doxygen 1.4.7