00001 /* 00002 * $RCSfile: OutputVoltagePoint.hpp,v $ 00003 * $Revision: 1.4 $ 00004 * $Date: 2009/12/20 20:54:52 $ 00005 * jEdit:tabSize=4:collapseFolds=1: 00006 * 00007 * class OutputVoltagePoint, OutputVoltagePointArray declarations 00008 */ 00009 00010 #if ! defined( OutputVoltagePoint_hpp ) 00011 #define OutputVoltagePoint_hpp 00012 00013 // {{{ includes 00014 #include <vector> 00015 // }}} 00016 00017 namespace AIOUSB { 00018 00027 class OutputVoltagePoint { 00028 public: 00029 00031 int channel; 00032 00034 double volts; 00035 00040 OutputVoltagePoint() { 00041 // nothing to do 00042 } // OutputVoltagePoint() 00043 00050 OutputVoltagePoint( int channel, double volts ) { 00051 this->channel = channel; 00052 this->volts = volts; 00053 } // OutputVoltagePoint() 00054 00055 }; // class OutputVoltagePoint 00056 00057 // {{{ class OutputVoltagePointArray declarations 00058 00059 class OutputVoltagePointArray : public std::vector<OutputVoltagePoint> { 00060 public: 00061 OutputVoltagePointArray( int size = 0 ) : std::vector<OutputVoltagePoint>( size ) {} 00062 }; // class OutputVoltagePointArray 00063 00064 // }}} 00065 00066 } // namespace AIOUSB 00067 00068 #endif 00069 00070 /* end of file */