H5DataTypes/include/Opal1kConfigV1.h

Go to the documentation of this file.
00001 #ifndef H5DATATYPES_OPAL1KCONFIGV1_H
00002 #define H5DATATYPES_OPAL1KCONFIGV1_H
00003 
00004 //--------------------------------------------------------------------------
00005 // File and Version Information:
00006 //      $Id: Opal1kConfigV1.h 6826 2013-09-24 21:08:01Z salnikov@SLAC.STANFORD.EDU $
00007 //
00008 // Description:
00009 //      Class Opal1kConfigV1.
00010 //
00011 //------------------------------------------------------------------------
00012 
00013 //-----------------
00014 // C/C++ Headers --
00015 //-----------------
00016 
00017 //----------------------
00018 // Base Class Headers --
00019 //----------------------
00020 
00021 
00022 //-------------------------------
00023 // Collaborating Class Headers --
00024 //-------------------------------
00025 #include "hdf5pp/Group.h"
00026 #include "pdsdata/psddl/opal1k.ddl.h"
00027 
00028 //------------------------------------
00029 // Collaborating Class Declarations --
00030 //------------------------------------
00031 
00032 //              ---------------------
00033 //              -- Class Interface --
00034 //              ---------------------
00035 
00036 namespace H5DataTypes {
00037 
00038 //
00039 // Helper type for Pds::Opal1k::ConfigV1
00040 //
00041 class Opal1kConfigV1 {
00042 public:
00043 
00044   typedef Pds::Opal1k::ConfigV1 XtcType ;
00045 
00046   Opal1kConfigV1() {}
00047   Opal1kConfigV1 ( const Pds::Opal1k::ConfigV1& config ) ;
00048 
00049   static hdf5pp::Type stored_type() ;
00050   static hdf5pp::Type native_type() ;
00051 
00052   static void store ( const Pds::Opal1k::ConfigV1& config, hdf5pp::Group location ) ;
00053 
00054   static size_t xtcSize( const XtcType& xtc ) { return xtc._sizeof() ; }
00055 
00056 private:
00057 
00058   uint16_t black_level ;
00059   uint16_t gain_percent ;
00060   uint16_t output_offset ;
00061   uint8_t output_resolution ;
00062   uint8_t output_resolution_bits ;
00063   uint8_t vertical_binning ;
00064   uint8_t output_mirroring ;
00065   uint8_t vertical_remapping ;
00066   uint8_t defect_pixel_correction_enabled ;
00067   uint8_t output_lookup_table_enabled ;
00068   uint32_t number_of_defect_pixels ;
00069 };
00070 
00071 } // namespace H5DataTypes
00072 
00073 #endif // H5DATATYPES_OPAL1KCONFIGV1_H

Generated on 19 Dec 2016 for PSDMSoftware by  doxygen 1.4.7