00001 #ifndef DLUTILS_H
00002 #define DLUTILS_H
00003
00004 #include "DLUtils.h"
00005
00009 enum DLEndian {
00010 DL_LE,
00011 DL_BE
00012 };
00013
00029 class DLUtils
00030 {
00031 public:
00036 DLUtils(void);
00037
00041 ~DLUtils(void);
00042
00060 static int roundInt(double val);
00061
00075 static double roundDouble(double value, int precision);
00076
00085 static void reverseInt(int &iVal);
00093 static void reverseShort(short &sVal);
00094
00105 static DLEndian testByteOrder()
00106 {
00107 short int word = 0x001;
00108 char *byte = (char*) &word;
00109 return (byte[0] ? DL_LE : DL_BE);
00110 };
00111
00112
00113
00114
00115
00116
00117
00118 static char * getRootName (char *longFile);
00119
00120
00121
00122
00123
00124
00125
00126 static char * getSuffix (char *longFile);
00127 };
00128
00129
00130 #endif // DLUTILS_H