35#ifndef NEKTAR_TESTS_METRICFILE_H
36#define NEKTAR_TESTS_METRICFILE_H
58 MetricFile(TiXmlElement *metric,
bool generate);
62 virtual bool v_Test(std::istream &pStdout, std::istream &pStderr);
63 virtual void v_Generate(std::istream &pStdout, std::istream &pStderr);
std::string CalculateHash(std::string filename)
virtual bool v_Test(std::istream &pStdout, std::istream &pStderr)
Virtual function to test the metric. Should be redefined in derived classes.
MetricFile(TiXmlElement *metric, bool generate)
std::map< std::string, std::string > m_filehash
Stores filenames to perform hash on.
static MetricSharedPtr create(TiXmlElement *metric, bool generate)
virtual void v_Generate(std::istream &pStdout, std::istream &pStderr)
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...
The above copyright notice and this permission notice shall be included.
std::shared_ptr< Metric > MetricSharedPtr
A shared pointer to an EquationSystem object.