MIDAS
Loading...
Searching...
No Matches
FeTest Class Reference
Inheritance diagram for FeTest:
Collaboration diagram for FeTest:

Public Member Functions

 FeTest ()
 
void HandleUsage ()
 
TMFeResult HandleArguments (const std::vector< std::string > &args)
 
TMFeResult HandleFrontendInit (const std::vector< std::string > &args)
 
TMFeResult HandleFrontendReady (const std::vector< std::string > &args)
 
void HandleFrontendExit ()
 
- Public Member Functions inherited from TMFrontend
 TMFrontend ()
 
virtual ~TMFrontend ()
 
int FeMain (int argc, char *argv[])
 
int FeMain (const std::vector< std::string > &args)
 
void FeUsage (const char *argv0)
 
void FeSetName (const char *program_name)
 
TMFeResult FeAddEquipment (TMFeEquipment *eq)
 
TMFeResult FeRemoveEquipment (TMFeEquipment *eq)
 
TMFeResult FeInitEquipments (const std::vector< std::string > &args)
 
void FeDeleteEquipments ()
 
void FeStopEquipmentPollThreads ()
 
double FePeriodicTasks ()
 
double FePollTasks (double next_periodic_time)
 
TMFeResult FeInit (const std::vector< std::string > &args)
 
void FeMainLoop ()
 
void FeShutdown ()
 
void FePollMidas (double sleep_sec)
 
void FePeriodicThread ()
 
void FeStartPeriodicThread ()
 
void FeStopPeriodicThread ()
 

Additional Inherited Members

- Public Attributes inherited from TMFrontend
TMFEfMfe = NULL
 
TMFrontendRpcHelperfFeRpcHelper = NULL
 
int fFeIndex = 0
 
bool fFeIfRunningCallExit = false
 
bool fFeIfRunningCallBeginRun = true
 
std::mutex fFeMutex
 
std::vector< TMFeEquipment * > fFeEquipments
 
std::thread * fFePeriodicThread = NULL
 
std::atomic_bool fFePeriodicThreadStarting {false}
 
std::atomic_bool fFePeriodicThreadRunning {false}
 
std::atomic_bool fFePeriodicThreadShutdownRequested {false}
 
double fFeFlushWriteCachePeriodSec = 0.5
 
double fFeFlushWriteCacheNextCallTime = 0
 

Detailed Description

Definition at line 529 of file fetest.cxx.

Constructor & Destructor Documentation

◆ FeTest()

FeTest::FeTest ( )
inline

Definition at line 532 of file fetest.cxx.

533 {
534 FeSetName("fetest");
535 FeAddEquipment(new EqRpc("test_rpc", __FILE__));
536 FeAddEquipment(new EqRandom("test_random", __FILE__));
537 FeAddEquipment(new EqSlow("test_slow", __FILE__));
538 FeAddEquipment(new EqRare("test_rare", __FILE__));
539 FeAddEquipment(new EqBulk("test_bulk", __FILE__));
540 }
void FeSetName(const char *program_name)
Definition tmfe.cxx:1647
TMFeResult FeAddEquipment(TMFeEquipment *eq)
Definition tmfe.cxx:1600
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
Definition rmidas.h:24
Here is the call graph for this function:

Member Function Documentation

◆ HandleArguments()

TMFeResult FeTest::HandleArguments ( const std::vector< std::string > &  args)
inlinevirtual

Reimplemented from TMFrontend.

Definition at line 547 of file fetest.cxx.

548 {
549 //printf("FeEverything::HandleArguments!\n");
550 return TMFeOk();
551 };
TMFeResult TMFeOk()
Definition tmfe.h:106
Here is the call graph for this function:

◆ HandleFrontendExit()

void FeTest::HandleFrontendExit ( )
inlinevirtual

Reimplemented from TMFrontend.

Definition at line 567 of file fetest.cxx.

568 {
569 //printf("FeEverything::HandleFrontendExit!\n");
570 };

◆ HandleFrontendInit()

TMFeResult FeTest::HandleFrontendInit ( const std::vector< std::string > &  args)
inlinevirtual

Reimplemented from TMFrontend.

Definition at line 553 of file fetest.cxx.

554 {
555 //printf("FeEverything::HandleFrontendInit!\n");
556 return TMFeOk();
557 };
Here is the call graph for this function:

◆ HandleFrontendReady()

TMFeResult FeTest::HandleFrontendReady ( const std::vector< std::string > &  args)
inlinevirtual

Reimplemented from TMFrontend.

Definition at line 559 of file fetest.cxx.

560 {
561 //printf("FeEverything::HandleFrontendReady!\n");
562 //FeStartPeriodicThread();
563 //fMfe->StartRpcThread();
564 return TMFeOk();
565 };
Here is the call graph for this function:

◆ HandleUsage()

void FeTest::HandleUsage ( )
inlinevirtual

Reimplemented from TMFrontend.

Definition at line 542 of file fetest.cxx.

543 {
544 //printf("FeEverything::HandleUsage!\n");
545 };

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