glucat 0.13.0
|
Parameters to control tests. More...
#include <control.h>
Public Member Functions | |
int | call (intfn f) const |
Call a function that returns int. | |
int | call (intintfn f, int arg) const |
Call a function of int that returns int. |
Static Public Member Functions | |
static const control_t & | control (int argc, char **argv) |
static bool | verbose () |
Produce more detailed output from tests. |
Private Member Functions | |
bool | valid () const |
bool | catch_exceptions () const |
control_t (int argc, char **argv) | |
Constructor from program arguments. | |
control_t ()=default | |
~control_t ()=default | |
control_t (const control_t &)=delete | |
control_t & | operator= (const control_t &)=delete |
Private Attributes | |
bool | m_valid |
Test parameters are valid. | |
bool | m_catch_exceptions |
Catch exceptions. |
Static Private Attributes | |
static bool | m_verbose_output = false |
Produce more detailed output from tests. |
Friends | |
class | friend_for_private_destructor |
|
private |
Constructor from program arguments.
Test control constructor from program arguments.
Definition at line 88 of file control.h.
References GLUCAT_PACKAGE_NAME, GLUCAT_VERSION, m_catch_exceptions, m_valid, m_verbose_output, and valid().
Referenced by control(), control_t(), and operator=().
|
privatedefault |
|
privatedefault |
|
privatedelete |
References control_t().
|
inline |
Call a function that returns int.
Definition at line 136 of file control.h.
References catch_exceptions(), glucat::try_catch(), and valid().
|
inline |
Call a function of int that returns int.
Definition at line 150 of file control.h.
References catch_exceptions(), glucat::try_catch(), and valid().
|
inlineprivate |
Definition at line 49 of file control.h.
References m_catch_exceptions.
|
inlinestatic |
Single instance Ref: Scott Meyers, "Effective C++" Second Edition, Addison-Wesley, 1998.
Definition at line 71 of file control.h.
References control_t().
References control_t().
|
inlineprivate |
|
inlinestatic |
Produce more detailed output from tests.
Definition at line 80 of file control.h.
References m_verbose_output.
|
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 67 of file control.h.
References friend_for_private_destructor.
Referenced by friend_for_private_destructor.
|
private |
Catch exceptions.
Definition at line 48 of file control.h.
Referenced by catch_exceptions(), and control_t().
|
private |
Test parameters are valid.
Definition at line 43 of file control.h.
Referenced by control_t(), and valid().
|
staticprivate |
Produce more detailed output from tests.
Definition at line 53 of file control.h.
Referenced by control_t(), and verbose().