35#ifndef NEKTAR_TESTS_METRICFILE_H
36#define NEKTAR_TESTS_METRICFILE_H
58 MetricFile(TiXmlElement *metric,
bool generate);
62 bool v_Test(std::istream &pStdout, std::istream &pStderr)
override;
63 void v_Generate(std::istream &pStdout, std::istream &pStderr)
override;
std::string CalculateHash(std::string filename)
MetricFile(TiXmlElement *metric, bool generate)
std::map< std::string, std::string > m_filehash
Stores filenames to perform hash on.
bool v_Test(std::istream &pStdout, std::istream &pStderr) override
Virtual function to test the metric. Should be redefined in derived classes.
static MetricSharedPtr create(TiXmlElement *metric, bool generate)
void v_Generate(std::istream &pStdout, std::istream &pStderr) override
Virtual function to generate the metric. Should be redefined in derived classes.
Base class for all metrics. Metric represents a test metric that can be used to evaluate the function...
std::shared_ptr< Metric > MetricSharedPtr
A shared pointer to an EquationSystem object.