LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS > Struct Template Reference

Class holding a configuration for a Boost test fixture. More...

#include "boost_unit_test_base.h"

Inheritance diagram for testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS >:

Public Types

using Base_t = CONFIGURATIONCLASS
 

Public Member Functions

 BoostCommandLineConfiguration ()
 Default constructor; this is what is used in Boost unit test. More...
 
 BoostCommandLineConfiguration (std::string name)
 Constructor; accepts the name as parameter. More...
 

Protected Member Functions

void ParseCommandLineFromBoost ()
 Parses arguments as delivered by Boost. More...
 

Detailed Description

template<typename CONFIGURATIONCLASS>
struct testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS >

Class holding a configuration for a Boost test fixture.


Template Parameters
CONFIGURATIONCLASSa base configuration class
See also
BasicEnvironmentConfiguration, TesterEnvironment

This class needs to be fully constructed by the default constructor in order to be useful as Boost unit test fixture. It is supposed to be passed as a template parameter to another class that can store an instance of it and extract configuration information from it.

This template just adds to the standard construction of the wrapped class a configuration that reads the parameters from the command line. It also hides all the constructors except two.

Definition at line 53 of file boost_unit_test_base.h.

Member Typedef Documentation

template<typename CONFIGURATIONCLASS >
using testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS >::Base_t = CONFIGURATIONCLASS

Definition at line 55 of file boost_unit_test_base.h.

Constructor & Destructor Documentation

template<typename CONFIGURATIONCLASS >
testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS >::BoostCommandLineConfiguration ( )
inline

Default constructor; this is what is used in Boost unit test.

Definition at line 58 of file boost_unit_test_base.h.

References testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS >::ParseCommandLineFromBoost().

58  : Base_t()
void ParseCommandLineFromBoost()
Parses arguments as delivered by Boost.
template<typename CONFIGURATIONCLASS >
testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS >::BoostCommandLineConfiguration ( std::string  name)
inline

Constructor; accepts the name as parameter.

Definition at line 62 of file boost_unit_test_base.h.

References testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS >::ParseCommandLineFromBoost().

62  : Base_t(name)
void ParseCommandLineFromBoost()
Parses arguments as delivered by Boost.

Member Function Documentation

template<typename CONFIGURATIONCLASS >
void testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS >::ParseCommandLineFromBoost ( )
inlineprotected

Parses arguments as delivered by Boost.

Definition at line 68 of file boost_unit_test_base.h.

Referenced by testing::BoostCommandLineConfiguration< CONFIGURATIONCLASS >::BoostCommandLineConfiguration().

69  {
70  Base_t::ParseCommandLine(
71  boost::unit_test::framework::master_test_suite().argc,
72  boost::unit_test::framework::master_test_suite().argv
73  );
74  }

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