CFEL - ASG Software Suite  2.5.0
CASS
data_generator.h
Go to the documentation of this file.
1 // Copyright (C) 2012 Lutz Foucar
2 
3 /**
4  * @file data_generator.h file contains base class for all data generators.
5  *
6  * @author Lutz Foucar
7  */
8 
9 #ifndef _DATAGENERATOR_H_
10 #define _DATAGENERATOR_H_
11 
12 #include <tr1/memory>
13 
14 #include <QtCore/QMutex>
15 
16 namespace cass
17 {
18 class CASSEvent;
19 
20 /** base class for all data generators
21  *
22  * data generators will fill a cassevent with data
23  *
24  * @author Lutz Foucar
25  */
27 {
28 public:
29  /** typedef the shared pointer of this */
30  typedef std::tr1::shared_ptr<DataGenerator> shared_pointer;
31 
32  /** virtual destructor */
33  virtual ~DataGenerator();
34 
35  /** fill data into the cassevent
36  *
37  * @param evt the cassevent that should be filled.
38  */
39  virtual void fill(CASSEvent& evt);
40 
41  /** load the settings of this from the ini file */
42  virtual void load();
43 };
44 } //end namespace cass
45 #endif
virtual void fill(CASSEvent &evt)
fill data into the cassevent
Event to store all LCLS Data.
Definition: cass_event.h:32
virtual void load()
load the settings of this from the ini file
base class for all data generators
virtual ~DataGenerator()
virtual destructor
std::tr1::shared_ptr< DataGenerator > shared_pointer
typedef the shared pointer of this