#include <regression_test_data.h>

Public Member Functions

void baseline (const std::string &filename)
 
const std::string & baseline () const
 
void add_file (const std::string &filename)
 
const std::vector< std::string > & files () const
 
void rebaseline (const bool rebase)
 
bool rebaseline () const
 
void add_subdir (const std::string &path)
 
void finalize ()
 

Static Public Member Functions

static regression_test_datainstance ()
 

Detailed Description

Singleton containing global data for all tests

Member Function Documentation

void add_file ( const std::string &  filename)
inline

Add a file to the file list

Parameters
filenamefile name
void add_subdir ( const std::string &  path)
inline

Add baseline subdirectory

Parameters
pathsub directory for a test
void baseline ( const std::string &  filename)
inline

Set the baseline file path

Parameters
filenamebaseline file path
const std::string& baseline ( ) const
inline

Get the baseline file path

Returns
baseline file path
const std::vector<std::string>& files ( ) const
inline

Get a vector of files to process

Returns
file vector
void finalize ( )
inline

Make all output subdirs

static regression_test_data& instance ( )
inlinestatic

Get instance of the singleton

Returns
instance
void rebaseline ( const bool  rebase)
inline

Set the rebaseline flag

If true, create a new baseline

Parameters
rebaserebaseline flag
bool rebaseline ( ) const
inline

Test if new baseline should be created

Returns
rebaseline flag state

The documentation for this class was generated from the following file: