00001 /* 00002 * $RCSfile: OutputVoltagePoint.hpp,v $ 00003 * $Revision: 1.2 $ 00004 * $Date: 2009/11/29 17:21:26 $ 00005 * jEdit:tabSize=4:collapseFolds=1: 00006 * 00007 * class OutputVoltagePoint, OutputVoltagePointArray declarations 00008 */ 00009 00010 00011 #if ! defined( OutputVoltagePoint_hpp ) 00012 #define OutputVoltagePoint_hpp 00013 00014 // {{{ includes 00015 #include <vector> 00016 // }}} 00017 00018 namespace AIOUSB { 00019 00020 // {{{ class OutputVoltagePoint declarations 00021 00029 class OutputVoltagePoint { 00030 public: 00031 00033 int channel; 00034 00036 double volts; 00037 00042 OutputVoltagePoint() { 00043 // nothing to do 00044 } // OutputVoltagePoint() 00045 00052 OutputVoltagePoint( int channel, double volts ) { 00053 this->channel = channel; 00054 this->volts = volts; 00055 } // OutputVoltagePoint() 00056 00057 }; // class OutputVoltagePoint 00058 00059 // }}} 00060 00061 // {{{ class OutputVoltagePointArray declarations 00062 00063 class OutputVoltagePointArray : public std::vector<OutputVoltagePoint> { 00064 public: 00065 OutputVoltagePointArray( int size = 0 ) : std::vector<OutputVoltagePoint>( size ) {} 00066 }; // class OutputVoltagePointArray 00067 00068 // }}} 00069 00070 } // namespace AIOUSB 00071 00072 #endif 00073 00074 00075 /* end of file */