#include <OSOption.h>
Public Member Functions | |
DirectoriesAndFiles () | |
Default constructor. | |
~DirectoriesAndFiles () | |
Class destructor. | |
bool | IsEqual (DirectoriesAndFiles *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 | 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 |
Definition at line 723 of file OSOption.h.
DirectoriesAndFiles::DirectoriesAndFiles | ( | ) |
DirectoriesAndFiles::~DirectoriesAndFiles | ( | ) |
bool DirectoriesAndFiles::IsEqual | ( | DirectoriesAndFiles * | that | ) |
A function to check for the equality of two objects.
Definition at line 9469 of file OSOption.cpp.
References numberOfPaths, and path.
bool DirectoriesAndFiles::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 11397 of file OSOption.cpp.
References n, numberOfPaths, OSRand(), and path.
Referenced by JobOption::setRandom().
bool DirectoriesAndFiles::setPath | ( | int | numberOfPaths, | |
std::string * | path | |||
) |
A function to set an array of <path> elements.
numberOfPaths,: | number of <path> elements to be set | |
path,: | the array of <path> elements that are to be set |
Definition at line 4654 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.
path,: | the path to be added |
Definition at line 4687 of file OSOption.cpp.
References numberOfPaths.
Referenced by OSOption::setAnotherDirectoryToDelete(), OSOption::setAnotherDirectoryToMake(), OSOption::setAnotherFileToDelete(), OSOption::setAnotherFileToMake(), OSOption::setAnotherRequiredDirectory(), and OSOption::setAnotherRequiredFile().
the number of <path> children
Definition at line 728 of file OSOption.h.
Referenced by addPath(), OSOption::getNumberOfDirectoriesToDelete(), OSOption::getNumberOfDirectoriesToMake(), OSOption::getNumberOfFilesToDelete(), OSOption::getNumberOfFilesToMake(), OSOption::getNumberOfRequiredDirectories(), OSOption::getNumberOfRequiredFiles(), IsEqual(), and setRandom().
std::string* DirectoriesAndFiles::path |
the list of directory and file paths
Definition at line 731 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(), setRandom(), OSOption::setRequiredDirectories(), OSOption::setRequiredFiles(), and ~DirectoriesAndFiles().