PathPairs Class Reference

the PathPairs class. More...

#include <OSOption.h>

Collaboration diagram for PathPairs:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PathPairs ()
 Default constructor.
 ~PathPairs ()
 Class destructor.
bool IsEqual (PathPairs *that)
 A function to check for the equality of two objects.
bool setPathPair (int numberOfPathPairs, PathPair **pathPair)
 A function to set an array of <pathPair> elements.
bool addPathPair (std::string fromPath, std::string toPath, bool makeCopy)
 A function to add a <pathPair> element.

Public Attributes

int numberOfPathPairs
 the number of <path> children
PathPair ** pathPair
 the list of directory and file paths

Detailed Description

the PathPairs 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 667 of file OSOption.h.


Constructor & Destructor Documentation

PathPairs::PathPairs (  ) 

Default constructor.

Definition at line 323 of file OSOption.cpp.

References pathPair.

PathPairs::~PathPairs (  ) 

Class destructor.

Definition at line 332 of file OSOption.cpp.

References numberOfPathPairs, and pathPair.


Member Function Documentation

bool PathPairs::IsEqual ( PathPairs that  ) 

A function to check for the equality of two objects.

Definition at line 7329 of file OSOption.cpp.

References numberOfPathPairs, and pathPair.

bool PathPairs::setPathPair ( int  numberOfPathPairs,
PathPair **  pathPair 
)

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

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

Definition at line 3843 of file OSOption.cpp.

References ErrorClass::errormsg, and pathPair.

Referenced by OSOption::setInputDirectoriesToMove(), OSOption::setInputFilesToMove(), OSOption::setOutputDirectoriesToMove(), and OSOption::setOutputFilesToMove().

bool PathPairs::addPathPair ( std::string  fromPath,
std::string  toPath,
bool  makeCopy 
)

A function to add a <pathPair> element.

Parameters:
fromPath,: the path from which to copy or move
toPath,: the path to which to copy or move
makecopy,: tracks whether a copy is to be made

Definition at line 3877 of file OSOption.cpp.

References ErrorClass::errormsg, PathPair::from, PathPair::makeCopy, numberOfPathPairs, pathPair, and PathPair::to.

Referenced by OSOption::setAnotherInputDirectoryToMove(), OSOption::setAnotherInputFileToMove(), OSOption::setAnotherOutputDirectoryToMove(), and OSOption::setAnotherOutputFileToMove().


Member Data Documentation

int PathPairs::numberOfPathPairs

the number of <path> children

Definition at line 671 of file OSOption.h.

Referenced by addPathPair(), OSOption::getNumberOfInputDirectoriesToMove(), OSOption::getNumberOfInputFilesToMove(), OSOption::getNumberOfOutputDirectoriesToMove(), OSOption::getNumberOfOutputFilesToMove(), IsEqual(), and ~PathPairs().

PathPair** PathPairs::pathPair

the list of directory and file paths

Definition at line 674 of file OSOption.h.

Referenced by addPathPair(), OSOption::getInputDirectoriesToMove(), OSOption::getInputFilesToMove(), OSOption::getOutputDirectoriesToMove(), OSOption::getOutputFilesToMove(), IsEqual(), PathPairs(), OSOption::setInputDirectoriesToMove(), OSOption::setInputFilesToMove(), OSOption::setOutputDirectoriesToMove(), OSOption::setOutputFilesToMove(), setPathPair(), and ~PathPairs().


The documentation for this class was generated from the following files:
Generated on Fri Jan 7 03:27:19 2011 by  doxygen 1.4.7