35#ifndef NEKTAR_TESTER_TESTDATA
36#define NEKTAR_TESTER_TESTDATA
38#include <boost/program_options.hpp>
47namespace po = boost::program_options;
81 TestData(
const fs::path &pFilename, po::variables_map &pVm);
90 TiXmlElement *
GetMetric(
unsigned int pId);
110 void Parse(TiXmlDocument *pDoc);
The TestData class is responsible for parsing a test XML file and storing the data.
TestData(const fs::path &pFilename, po::variables_map &pVm)
TestData constructor.
std::vector< TiXmlElement * > m_metrics
DependentFile GetDependentFile(unsigned int pId) const
unsigned int GetMetricId(unsigned int pId)
Returns the ID of the metric for a given metric ID.
void Parse(TiXmlDocument *pDoc)
Parse the test file and populate member variables for the test.
std::vector< Command > m_commands
unsigned int GetNumDependentFiles() const
Returns the number of dependent files required for the test.
unsigned int GetNumMetrics() const
Returns the number of metrics to be collected for the test.
unsigned int m_runs
The number of times to run the test.
Command ParseCommand(TiXmlElement *pElmt) const
unsigned int GetNumRuns() const
Returns the number of runs to be performed for the test.
TiXmlElement * GetMetric(unsigned int pId)
Returns a pointer to the TiXmlElement object representing the metric for a given metric ID.
unsigned int GetNumCommands() const
const std::string & GetDescription() const
Returns the description of a test.
std::string GetMetricType(unsigned int pId) const
Returns the type of metric to be collected for a given metric ID.
po::variables_map m_cmdoptions
const Command & GetCommand(unsigned int pId) const
std::vector< DependentFile > m_files
std::string m_description
CommandType m_commandType
std::string m_description