CFEL - ASG Software Suite  2.5.0
CASS
image_generator.h
Go to the documentation of this file.
1 //Copyright (C) 2012 Lutz Foucar
2 
3 /**
4  * @file image_generator.h file contains a class for image generation
5  *
6  * @author Lutz Foucar
7  */
8 
9 #ifndef _IMAGEGENERATOR_H
10 #define _IMAGEGENERATOR_H
11 
12 #include "data_generator.h"
13 #include "generic_factory.hpp"
14 
15 namespace cass
16 {
17 /** generate a waveform of a chosen type
18  *
19  * @GenList "Image": Generates a user defined image
20  *
21  * @cassttng TestInput/ImageGenerator/{InstrumentId} \n
22  *
23  * @author Lutz Foucar
24  */
26 {
27 public:
28  /** constructor
29  *
30  * does nothing
31  */
33 
34  /** loads the parameters from the ini file */
35  void load();
36 
37  /** fills the cass event with a random waveform
38  *
39  * @param evt the cassevent that should be filled.
40  */
41  void fill(CASSEvent& evt);
42 
43 private:
44  /** object to register this data generator to the factory */
46 
47 };
48 }//end namespace cass
49 
50 #endif
Event to store all LCLS Data.
Definition: cass_event.h:32
helper struct that will add Derived to the factory map
base class for all data generators
file contains base class for all data generators.
static Registrar< DataGenerator, ImageGenerator > reg
object to register this data generator to the factory
ImageGenerator()
constructor
generate a waveform of a chosen type
void fill(CASSEvent &evt)
fills the cass event with a random waveform
void load()
loads the parameters from the ini file
contains a factory that can be used for any class