b2api
B2000++ API Reference Manual, VERSION 4.6
 
Loading...
Searching...
No Matches
b2utest::test_setup Class Referenceabstract

#include "test_setup.H"

Inheritance diagram for b2utest::test_setup:

Public Member Functions

 test_setup (std::string basename)
 Constructor of setup with a basename.
 
b2000::Modelcreate_model ()
 

Protected Member Functions

virtual std::string fname () const
 
virtual void create_mdl (std::string filename) const =0
 

Detailed Description

Base class to describe a test setup.

This class can be used to describe various test setups by deriving from the class and overriding the method to create the MDL file.

Member Function Documentation

◆ create_mdl()

virtual void b2utest::test_setup::create_mdl ( std::string  filename) const
protectedpure virtual

Creating the actual MDL file in filename. Has to be provided by the child classes providing specific test cases.

Parameters
[in]filenamename of the file to create

◆ create_model()

b2000::Model * b2utest::test_setup::create_model ( )

Obtain a model object from database of this test setup.

Returns
pointer to the initialized b2000::Model

◆ fname()

virtual std::string b2utest::test_setup::fname ( ) const
inlineprotectedvirtual

Construct the base filename for the MDL and DB file

Returns
a string providing the basename to use for the setup files

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