Diana Software
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MGuiDriver Class Reference

driver module for Interactive GUI, interfaced via TSocket with any class inerithing QGDMessageHandler More...

Inheritance diagram for MGuiDriver:

Public Member Functions

 MGuiDriver ()
 constructor More...
 
 ~MGuiDriver ()
 destructor More...
 
Action Init (Diana::QEventAssembler &eva)
 Init method. More...
 
Action Do (Diana::QEventAssembler &eva)
 Do method. More...
 
Action Done ()
 Done method. More...
 

Private Types

enum  MenuLevel { ML_Init = 0 , ML_Do , ML_Done }
 

Private Member Functions

Action Menu (MenuLevel level)
 Menu method. Handle Menu logic. More...
 
Action HandleCommand (QGDCommand cmd)
 HandleCommand method. Execute a command. More...
 
QGDCommand GetCommand (MenuLevel level)
 Get command from standard input. More...
 
void SendCommands (MenuLevel level)
 Send Avalaible commands to the server. More...
 
void ListModules ()
 Send List of avalaible modules. More...
 
void ListModuleParameters (int modIndex)
 Send List of module parameter. More...
 
void ChangeModuleParameter (int modIndex, const QVdt &val)
 change module parameter More...
 
void SendData (const std::string &type)
 send data More...
 
void SendTObject (const TObject *obj)
 general purpose function used to send TObjects More...
 

Private Attributes

TSocket * fSocket
 
Diana::QEventAssembler * fEva
 
QRunData fRunData
 
const Diana::QGlobalDataManager * fDm
 

Detailed Description

driver module for Interactive GUI, interfaced via TSocket with any class inerithing QGDMessageHandler

Author
Marco Vignati

Driver module for Interactive GUI It handles menus, parameter configurations and such

Definition at line 46 of file MGuiDriver.hh.

Member Enumeration Documentation

◆ MenuLevel

enum MGuiDriver::MenuLevel
private
Enumerator
ML_Init 
ML_Do 
ML_Done 

Definition at line 64 of file MGuiDriver.hh.

Constructor & Destructor Documentation

◆ MGuiDriver()

MGuiDriver::MGuiDriver ( )

constructor

Definition at line 18 of file MGuiDriver.cc.

◆ ~MGuiDriver()

MGuiDriver::~MGuiDriver ( )

destructor

Definition at line 24 of file MGuiDriver.cc.

Member Function Documentation

◆ ChangeModuleParameter()

void MGuiDriver::ChangeModuleParameter ( int  modIndex,
const QVdt val 
)
private

change module parameter

Definition at line 245 of file MGuiDriver.cc.

References QVdt::GetName().

◆ Do()

QDriver::Action MGuiDriver::Do ( Diana::QEventAssembler &  eva)

◆ Done()

QDriver::Action MGuiDriver::Done ( )

Done method.

Definition at line 69 of file MGuiDriver.cc.

◆ GetCommand()

QGDCommand MGuiDriver::GetCommand ( MenuLevel  level)
private

Get command from standard input.

Definition at line 135 of file MGuiDriver.cc.

References QGDCommand::fCommandId.

◆ HandleCommand()

QDriver::Action MGuiDriver::HandleCommand ( QGDCommand  cmd)
private

◆ Init()

QDriver::Action MGuiDriver::Init ( Diana::QEventAssembler &  eva)

Init method.

Definition at line 30 of file MGuiDriver.cc.

◆ ListModuleParameters()

void MGuiDriver::ListModuleParameters ( int  modIndex)
private

Send List of module parameter.

Definition at line 222 of file MGuiDriver.cc.

References QGDParameter::fName, QGDModuleParameterList::fParameters, and QGDUtils::QVdtToParameter().

◆ ListModules()

void MGuiDriver::ListModules ( )
private

Send List of avalaible modules.

Definition at line 209 of file MGuiDriver.cc.

References QGDModuleList::fModules.

◆ Menu()

QDriver::Action MGuiDriver::Menu ( MenuLevel  level)
private

Menu method. Handle Menu logic.

Definition at line 76 of file MGuiDriver.cc.

References QDriver::Action::fActionId.

◆ SendCommands()

void MGuiDriver::SendCommands ( MenuLevel  level)
private

◆ SendData()

void MGuiDriver::SendData ( const std::string &  type)
private

◆ SendTObject()

void MGuiDriver::SendTObject ( const TObject *  obj)
private

general purpose function used to send TObjects

Definition at line 196 of file MGuiDriver.cc.

Member Data Documentation

◆ fDm

const Diana::QGlobalDataManager* MGuiDriver::fDm
private

Definition at line 100 of file MGuiDriver.hh.

◆ fEva

Diana::QEventAssembler* MGuiDriver::fEva
private

Definition at line 98 of file MGuiDriver.hh.

◆ fRunData

QRunData MGuiDriver::fRunData
private

Definition at line 99 of file MGuiDriver.hh.

◆ fSocket

TSocket* MGuiDriver::fSocket
private

Definition at line 97 of file MGuiDriver.hh.


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