Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BeamData.h

Go to the documentation of this file.
00001 #ifndef BEAMDATA_H
00002 #define BEAMDATA_H
00003 
00004 class BeamDataImp;
00005 class BeamData {
00006 
00007     BeamDataImp* fImp;
00008 
00009 public:
00010 
00011     BeamData();
00012     ~BeamData();
00013 
00016     int open_connection(const char* host);
00018     int close_connection();
00020     int open_file(int sec, int nanosec);
00022     int close_file();
00023 
00025     int send_data();
00026 
00027 
00029 
00030     // Remove any previous data and start a new block.  Time stamp is
00031     // representative of entire block.
00032     void start_block(int seconds, int nanosecs, int spillcount,
00033                      int tclk_event, int tclk_delay);
00034     // Start a new device sec+msec DAE timestamp.
00035     void set_device_header(const char* name, int dae_sec, int dae_msec);
00036     // Append a value to the named device.  Must set device header first.
00037     void add_device_value(const char* name, double value);
00038 
00039     const char* current_filename();
00040     const char* error(int errcode);
00041 };
00042 #endif  // BEAMDATA_H

Generated on Mon Feb 15 11:06:24 2010 for loon by  doxygen 1.3.9.1