65 void setArguments(
int rArgc,
char *rpArgv[]);
72 bool requiredArgsSet();
79 int getFileDimensions(
int rFile);
86 std::vector<adj_map> getConvFactor(
int rFile);
93 std::vector<adj_map> getNormVal(
int rFile);
107 ifstream & getInputFile(
int rFile);
114 string getFileName(
int rFile);
120 ofstream & getLogFile();
126 string getOutPrefix();
135 return this ->restrictToRange;
146 return this ->mRange;
152 std::vector<cmp_map> getComparisonList();
160 std::vector< std::vector<int> > getFieldMappings(
int rFile);
167 std::vector<index_order> getIndexOrder(
int rFile);
174 void setDefaultVars();
191 bool parseValuesFromArguments(
string rOptString,
192 const struct option *rLongOpts);
199 bool initializeFileStreams();
206 bool writeLogHeader();
250 string gUsage(
"Usage: [--outfile | -o] <output file prefix>\n\t"
251 "[--infile1 | -1] <intput file 1 name>:<dimensions>\n\t"
252 "[--infile2 | -2] <intput file 2 name>:<dimensions>\n\t"
253 "[--fieldmap | -f] <File (1,2)>:<File Dimension>/<Mapped Dimension or \"null\">\n\t"
254 "[--index-order | -i] <File (1,2)>:<Partition>:<Dimension 1>,<Dimension 2>,...\n\t"
255 "[--conv | -c] <File (1,2)>:<Variable>:<Conversion Factor> \n\t"
256 "[--norm | -n] <File (1,2)>:<Variable>:<Normalization Factor> \n\t"
257 "[--range | -r] <xmin>,<ymin>,<zmin>,<xmax>,<ymax>,<zmax> \n\t"
258 "[--metric | -m] <metric number>=<file 1 partition 1>,<file 1 partition 2>,...:<file 1 variable>/\n\t"
259 " <file 2 partition>:<file 2 variable>\n\t"
260 "[--verbose | -v]\n" );
BoundingBox getRange()
Returns a bounding box corresponding to the range of the region of interest.
void compareFiles(vector< datafile * > pFiles)
Compare the two files, interpolating the points from the second onto the first mesh.
A concrete object that provides the functionality for representing a bounding box geometric primitive...
int mInfile2Dimensions
Infile 1 independent variable dimensions.
bool restrictToRange
Infile 2 independent variable dimensions.
std::vector< adj_map > mFile1Norm
const char * option(const char *const name, const int argc, const char *const *const argv, const char *defaut, const char *const usage=0)
long double maxPoint(points *pPoints, int rVar)
Find the maximum value.
Base class for file parsing.
string gUsage("Usage: [--outfile | -o] <output file prefix>\n\t""[--infile1 | -1] <intput file 1 name>:<dimensions>\n\t""[--infile2 | -2] <intput file 2 name>:<dimensions>\n\t""[--fieldmap | -f] <File (1,2)>:<File Dimension>/<Mapped Dimension or \"null\">\n\t""[--index-order | -i] <File (1,2)>:<Partition>:<Dimension 1>,<Dimension 2>,...\n\t""[--conv | -c] <File (1,2)>:<Variable>:<Conversion Factor> \n\t""[--norm | -n] <File (1,2)>:<Variable>:<Normalization Factor> \n\t""[--range | -r] <xmin>,<ymin>,<zmin>,<xmax>,<ymax>,<zmax> \n\t""[--metric | -m] <metric number>=<file 1 partition 1>,<file 1 partition 2>,...:<file 1 variable>/\n\t"" <file 2 partition>:<file 2 variable>\n\t""[--verbose | -v]\n")
std::vector< cmp_map > mComparisonList
long double minPoint(points *pPoints, int rVar)
Find the minimum value.
void printUsage(const char *why)
bool isRangeSpecified()
Returns a flag that indicates whether a range was supplied to this instance of CommSwitch.
std::vector< index_order > mIndexOrderFile2
BoundingBox mRange
Flag used to indicate if the metrics will be restricted to a given range.
bool mHelp
Help flag is set from command line options.
std::vector< std::vector< int > > mFieldMappingsFile1
std::vector< points * > retrievePoints(datafile *pFile, vector< int > rPartitions)
Construct a vector of pointers to datasets (point objects) from a list of partition numbers...
char ** mpArgv
Number of arguments.
int mInfile1Dimensions
Bad command line switch detection.
std::vector< adj_map > mFile2ConversionFactor
long double calcAverageValue(points *pPoints, int rVar)
Calculates the average value of the points.
std::vector< std::vector< int > > mFieldMappingsFile2
vector< datafile * > openAndParseFiles()
Open the files specified at the command line and parse them.
std::vector< adj_map > mFile1ConversionFactor
Range of region of interest.
std::vector< index_order > mIndexOrderFile1
void printPointValues(points *pPoints)
Write point values to standard out.
std::vector< adj_map > mFile2Norm
bool mBadSwitch
The actual command line arguments.