simplevector.h
Go to the documentation of this file.
00001 //======================================================================
00028 //======================================================================
00029 
00030 #ifndef SIMPLEVECTOR_H_
00031 #define SIMPLEVECTOR_H_
00032 
00033 #include "sdhlibrary_settings.h"
00034 
00035 #if SDH_USE_VCC
00036 # pragma warning(disable : 4290)
00037 #endif
00038 
00039 //----------------------------------------------------------------------
00040 // System Includes - include with <>
00041 //----------------------------------------------------------------------
00042 
00043 
00044 //----------------------------------------------------------------------
00045 // Project Includes - include with ""
00046 //----------------------------------------------------------------------
00047 
00048 #include "sdhexception.h"
00049 
00050 //----------------------------------------------------------------------
00051 // Defines, enums, unions, structs,
00052 //----------------------------------------------------------------------
00053 
00054 NAMESPACE_SDH_START
00055 
00056 
00057 //----------------------------------------------------------------------
00058 // Global variables
00059 //----------------------------------------------------------------------
00060 
00061 
00062 //----------------------------------------------------------------------
00063 // Function implementation (function definitions)
00064 //----------------------------------------------------------------------
00065 
00066 
00067 //----------------------------------------------------------------------
00068 // Class declarations
00069 //----------------------------------------------------------------------
00070 
00074 class VCC_EXPORT cSimpleVectorException: public cSDHLibraryException
00075 {
00076 public:
00077   cSimpleVectorException( cMsg const & _msg )
00078     : cSDHLibraryException( "cSimpleVectorException", _msg )
00079   {}
00080 };
00081 //======================================================================
00082 
00083 
00085 
00091 class VCC_EXPORT cSimpleVector
00092 {
00093 public:
00095     enum
00096     {
00097       eNUMBER_OF_ELEMENTS = 7 
00098     };
00099 
00101     cSimpleVector()
00102         throw (cSimpleVectorException*);
00103 
00104 
00106     cSimpleVector( int nb_values, char const* str )
00107         throw (cSimpleVectorException*);
00108 
00109 
00111     cSimpleVector( int nb_values, int start_index, char const* str )
00112         throw (cSimpleVectorException*);
00113 
00115     cSimpleVector( int nb_values, int start_index, float* values )
00116         throw (cSimpleVectorException*);
00117 
00118 
00120     void FromString( int nb_values, int start_index, char const* str )
00121         throw (cSimpleVectorException*);
00122 
00123 
00125     double& operator[]( unsigned int index );
00126 
00127 
00129     double& x(void);
00130 
00131 
00133     double& y(void);
00134 
00135 
00137     double& z(void);
00138 
00140     bool Valid( unsigned int index ) const;
00141 
00142 protected:
00143 
00144     double value[ eNUMBER_OF_ELEMENTS ];
00145 
00147     int valid;
00148 
00149 }; // cSimpleVector
00150 //-----------------------------------------------------------------
00151 
00152 NAMESPACE_SDH_END
00153 
00154 #endif
00155 
00156 
00157 //======================================================================
00158 /*
00159   Here are some settings for the emacs/xemacs editor (and can be safely ignored):
00160   (e.g. to explicitely set C++ mode for *.h header files)
00161 
00162   Local Variables:
00163   mode:C++
00164   mode:ELSE
00165   End:
00166 */
00167 //======================================================================


schunk_sdh
Author(s): Mathias Luedtke , Florian Weisshardt
autogenerated on Thu Aug 27 2015 15:07:03