Diana Software
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MTestModule Class Reference

diana framework software test. More...

Inheritance diagram for MTestModule:

Public Member Functions

 MTestModule ()
 
virtual ~MTestModule ()
 
virtual void Init (Diana::QEvent &ev)
 
virtual void Do (Diana::QEvent &ev)
 
virtual void Done ()
 

Private Member Functions

void TestQEvent (const Diana::QEvent &ev)
 

Private Attributes

bool fIsFirstSequence
 
unsigned int fIter
 
Diana::QVector fGlobalQVector
 
Diana::QMatrix fGlobalQMatrix
 
Diana::QMatrixC fGlobalQMatrixC
 
Diana::QVectorC fGlobalQVectorC
 
Diana::QVector fEventVector
 
Diana::QVectorC fEventVectorC
 
Diana::QMatrix fEventMatrix
 
Diana::QMatrixC fEventMatrixC
 
std::string fOutputDir
 
int fTestOK
 
int fTestKO
 
bool fWriteEvtNum
 
bool fTestGlobal
 
bool fTestEvent
 
bool fTestDefaults
 
bool testConfigFile
 

Static Private Attributes

static Diana::QSequence * fFirstSequence = NULL
 
static Diana::QSequence * fCurrentSequence = NULL
 
static int fMyOccurrence = -1
 

Detailed Description

diana framework software test.

Author
Marco Vignati

Needed by developers to check the correct program flow and the framework core APIs

Definition at line 24 of file MTestModule.hh.

Constructor & Destructor Documentation

◆ MTestModule()

MTestModule::MTestModule ( )

Definition at line 35 of file MTestModule.cc.

◆ ~MTestModule()

MTestModule::~MTestModule ( )
virtual

Definition at line 55 of file MTestModule.cc.

Member Function Documentation

◆ Do()

void MTestModule::Do ( Diana::QEvent &  ev)
virtual

◆ Done()

void MTestModule::Done ( )
virtual

MV FIXME QGuiSession guisession; GlobalData().SetQObject("GuiSession",&guisession,fOutputDir +"/testgui.gui");

Definition at line 340 of file MTestModule.cc.

References ASSERT_EQUAL, err, QMatrix::GetNCol(), QMatrix::GetNRow(), QMatrix::GetRow(), Q_CURRENT_WRITER, and QERR_SUCCESS.

◆ Init()

void MTestModule::Init ( Diana::QEvent &  ev)
virtual

Read Config file

First event processed will be 3

Add an event based - user defined - TObject

Add a global -user defined -TObject

Definition at line 71 of file MTestModule.cc.

References QEvent::Add(), ASSERT_EQUAL, DebugMsg, and InfoMsg.

◆ TestQEvent()

void MTestModule::TestQEvent ( const Diana::QEvent &  ev)
private

Definition at line 455 of file MTestModule.cc.

Member Data Documentation

◆ fCurrentSequence

Diana::QSequence * MTestModule::fCurrentSequence = NULL
staticprivate

Definition at line 43 of file MTestModule.hh.

◆ fEventMatrix

Diana::QMatrix MTestModule::fEventMatrix
private

Definition at line 57 of file MTestModule.hh.

◆ fEventMatrixC

Diana::QMatrixC MTestModule::fEventMatrixC
private

Definition at line 58 of file MTestModule.hh.

◆ fEventVector

Diana::QVector MTestModule::fEventVector
private

Definition at line 55 of file MTestModule.hh.

◆ fEventVectorC

Diana::QVectorC MTestModule::fEventVectorC
private

Definition at line 56 of file MTestModule.hh.

◆ fFirstSequence

Diana::QSequence * MTestModule::fFirstSequence = NULL
staticprivate

Definition at line 42 of file MTestModule.hh.

◆ fGlobalQMatrix

Diana::QMatrix MTestModule::fGlobalQMatrix
private

Definition at line 51 of file MTestModule.hh.

◆ fGlobalQMatrixC

Diana::QMatrixC MTestModule::fGlobalQMatrixC
private

Definition at line 52 of file MTestModule.hh.

◆ fGlobalQVector

Diana::QVector MTestModule::fGlobalQVector
private

Definition at line 50 of file MTestModule.hh.

◆ fGlobalQVectorC

Diana::QVectorC MTestModule::fGlobalQVectorC
private

Definition at line 53 of file MTestModule.hh.

◆ fIsFirstSequence

bool MTestModule::fIsFirstSequence
private

Definition at line 44 of file MTestModule.hh.

◆ fIter

unsigned int MTestModule::fIter
private

Definition at line 46 of file MTestModule.hh.

◆ fMyOccurrence

int MTestModule::fMyOccurrence = -1
staticprivate

Definition at line 68 of file MTestModule.hh.

◆ fOutputDir

std::string MTestModule::fOutputDir
private

Definition at line 59 of file MTestModule.hh.

◆ fTestDefaults

bool MTestModule::fTestDefaults
private

Definition at line 66 of file MTestModule.hh.

◆ fTestEvent

bool MTestModule::fTestEvent
private

Definition at line 65 of file MTestModule.hh.

◆ fTestGlobal

bool MTestModule::fTestGlobal
private

Definition at line 64 of file MTestModule.hh.

◆ fTestKO

int MTestModule::fTestKO
private

Definition at line 62 of file MTestModule.hh.

◆ fTestOK

int MTestModule::fTestOK
private

Definition at line 61 of file MTestModule.hh.

◆ fWriteEvtNum

bool MTestModule::fWriteEvtNum
private

Definition at line 63 of file MTestModule.hh.

◆ testConfigFile

bool MTestModule::testConfigFile
private

Definition at line 67 of file MTestModule.hh.


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