glucat  0.8.4
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
glucat::control_t Class Reference

Parameters to control tests. More...

#include <control.h>

Public Member Functions

int call (intfn f) const
 Call a function that returns int. More...
 
int call (intintfn f, int arg) const
 Call a function of int that returns int. More...
 

Static Public Member Functions

static const control_tcontrol (int argc, char **argv)
 
static bool verbose ()
 Produce more detailed output from tests. More...
 

Private Member Functions

bool valid () const
 
bool catch_exceptions () const
 
 control_t (int argc, char **argv)
 Constructor from program arguments. More...
 
 control_t ()
 
 ~control_t ()
 
 control_t (const control_t &)
 
control_toperator= (const control_t &)
 

Private Attributes

bool m_valid
 Test parameters are valid. More...
 
bool m_catch_exceptions
 Catch exceptions. More...
 

Static Private Attributes

static bool m_verbose_output = false
 Produce more detailed output from tests. More...
 

Friends

class friend_for_private_destructor
 

Detailed Description

Parameters to control tests.

Definition at line 68 of file control.h.

Constructor & Destructor Documentation

◆ control_t() [1/3]

glucat::control_t::control_t ( int  argc,
char **  argv 
)
private

Constructor from program arguments.

Test control constructor from program arguments.

Definition at line 117 of file control.h.

◆ control_t() [2/3]

glucat::control_t::control_t ( )
inlineprivate

Definition at line 117 of file control.h.

◆ ~control_t()

glucat::control_t::~control_t ( )
inlineprivate

Definition at line 118 of file control.h.

◆ control_t() [3/3]

glucat::control_t::control_t ( const control_t )
private

Member Function Documentation

◆ call() [1/2]

int glucat::control_t::call ( intfn  f) const
inline

Call a function that returns int.

Definition at line 165 of file control.h.

◆ call() [2/2]

int glucat::control_t::call ( intintfn  f,
int  arg 
) const
inline

Call a function of int that returns int.

Definition at line 179 of file control.h.

◆ catch_exceptions()

bool glucat::control_t::catch_exceptions ( ) const
inlineprivate

Definition at line 107 of file control.h.

Referenced by verbose().

◆ control()

static const control_t& glucat::control_t::control ( int  argc,
char **  argv 
)
inlinestatic

Single instance Ref: Scott Meyers, "Effective C++" Second Edition, Addison-Wesley, 1998.

Definition at line 129 of file control.h.

◆ operator=()

control_t& glucat::control_t::operator= ( const control_t )
private

◆ valid()

bool glucat::control_t::valid ( ) const
inlineprivate

Definition at line 102 of file control.h.

References m_valid.

Referenced by verbose().

◆ verbose()

static bool glucat::control_t::verbose ( )
inlinestatic

Produce more detailed output from tests.

Definition at line 138 of file control.h.

References catch_exceptions(), glucat::try_catch(), and valid().

Friends And Related Function Documentation

◆ friend_for_private_destructor

friend class friend_for_private_destructor
friend

Friend declaration to avoid compiler warning: "... only defines a private destructor and has no friends" Ref: Carlos O'Ryan, ACE http://doc.ece.uci.edu

Definition at line 125 of file control.h.

Member Data Documentation

◆ m_catch_exceptions

bool glucat::control_t::m_catch_exceptions
private

Catch exceptions.

Definition at line 106 of file control.h.

◆ m_valid

bool glucat::control_t::m_valid
private

Test parameters are valid.

Definition at line 101 of file control.h.

Referenced by valid().

◆ m_verbose_output

bool glucat::control_t::m_verbose_output = false
staticprivate

Produce more detailed output from tests.

Definition at line 111 of file control.h.


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