Disk ARchive  2.4.2
Public Member Functions
libdar::testing Class Reference

the testing class binds criterium to actions More...

#include <criterium.hpp>

Inherits libdar::crit_action.

List of all members.

Public Member Functions

 testing (const criterium &input, const crit_action &go_true, const crit_action &go_false)
 the constructor
 testing (const testing &ref)
const testingoperator= (const testing &ref)
void get_action (const nomme &first, const nomme &second, over_action_data &data, over_action_ea &ea) const
 the inherited pure virtual method from class action that must be gimplemented
crit_actionclone () const
 clone construction method

Detailed Description

the testing class binds criterium to actions

a testing class is also an action that let the user build complex testing. It is thus possible to recursively use testing inside testing


Constructor & Destructor Documentation

libdar::testing::testing ( const criterium input,
const crit_action go_true,
const crit_action go_false 
)

the constructor

Parameters:
[in]inputis the criterium to base the evaluation on
[in]go_trueis the action to use for evaluation if the criterium states true
[in]go_falseis the action to use for evaluation if the criterium states false

Referenced by clone().


Member Function Documentation

crit_action* libdar::testing::clone ( ) const [inline, virtual]

clone construction method

Returns:
a new object of the same type,
Note:
this method must be implemented in all the leaf classes of the action hierarchy class

Implements libdar::crit_action.

Definition at line 186 of file criterium.hpp.

References testing().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines