#include <OSOption.h>
Collaboration diagram for PathPairs:
Public Member Functions | |
PathPairs () | |
Default constructor. | |
~PathPairs () | |
Class destructor. | |
bool | IsEqual (PathPairs *that) |
A function to check for the equality of two objects. | |
bool | setRandom (double density, bool conformant) |
A function to make a random instance of this class. | |
bool | setPathPair (int numberOfPathPairs, PathPair **pathPair) |
A function to set an array of <pathPair> elements. | |
bool | setPathPair (std::string *from, std::string *to, bool *makeCopy, int numberOfPathPairs) |
Alternate signature for this function. | |
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 |
Definition at line 839 of file OSOption.h.
PathPairs::PathPairs | ( | ) |
PathPairs::~PathPairs | ( | ) |
Class destructor.
Definition at line 339 of file OSOption.cpp.
References numberOfPathPairs, and pathPair.
bool PathPairs::IsEqual | ( | PathPairs * | that | ) |
A function to check for the equality of two objects.
Definition at line 9518 of file OSOption.cpp.
References numberOfPathPairs, and pathPair.
bool PathPairs::setRandom | ( | double | density, | |
bool | conformant | |||
) |
A function to make a random instance of this class.
density,: | corresponds to the probability that a particular child element is created | |
conformant,: | if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" atrbutes and <XXX> children) |
Definition at line 11416 of file OSOption.cpp.
References n, numberOfPathPairs, OSRand(), pathPair, and PathPair::setRandom().
Referenced by JobOption::setRandom().
bool PathPairs::setPathPair | ( | int | numberOfPathPairs, | |
PathPair ** | pathPair | |||
) |
A function to set an array of <pathPair> elements.
numberOfPathPairs,: | number of <pathPair> elements to be set | |
path,: | the array of <pathPair> elements that are to be set |
Definition at line 4726 of file OSOption.cpp.
References ErrorClass::errormsg, and pathPair.
Referenced by OSOption::setInputDirectoriesToMove(), OSOption::setInputFilesToMove(), OSOption::setOutputDirectoriesToMove(), OSOption::setOutputFilesToMove(), and OSOption::setPathPairs().
bool PathPairs::setPathPair | ( | std::string * | from, | |
std::string * | to, | |||
bool * | makeCopy, | |||
int | numberOfPathPairs | |||
) |
Alternate signature for this function.
from,: | array containing a list of objects to be moved | |
to,: | array containing a list of destinations | |
makeCopy,: | records whether each object is to be moved or copied | |
numberOfPathPairs,: | number of <pathPair> elements to be set |
Definition at line 4758 of file OSOption.cpp.
References PathPair::from, PathPair::makeCopy, pathPair, and PathPair::to.
bool PathPairs::addPathPair | ( | std::string | fromPath, | |
std::string | toPath, | |||
bool | makeCopy | |||
) |
A function to add a <pathPair> element.
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 4787 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().
the number of <path> children
Definition at line 844 of file OSOption.h.
Referenced by addPathPair(), OSOption::getNumberOfInputDirectoriesToMove(), OSOption::getNumberOfInputFilesToMove(), OSOption::getNumberOfOutputDirectoriesToMove(), OSOption::getNumberOfOutputFilesToMove(), IsEqual(), setRandom(), and ~PathPairs().
the list of directory and file paths
Definition at line 847 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(), setRandom(), and ~PathPairs().