Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 mutil.h - Kugar utlity class 00003 ------------------- 00004 begin : Tue Aug 17 1999 00005 copyright : (C) 1999 by Mutiny Bay Software 00006 email : info@mutinybaysoftware.com 00007 copyright : (C) 2002 Alexander Dymo 00008 email : cloudtemple@mksat.net 00009 ***************************************************************************/ 00010 00011 #ifndef MUTIL_H 00012 #define MUTIL_H 00013 00014 #include <qobject.h> 00015 #include <qstring.h> 00016 #include <qdatetime.h> 00017 #include <qmemarray.h> 00018 00024 class MUtil { 00025 00026 public: 00027 00031 enum DateFormatType { 00032 MDY_SLASH = 0, MDY_DASH, 00033 MMDDY_SLASH, MMDDY_DASH, 00034 MDYYYY_SLASH, MDYYYY_DASH, 00035 MMDDYYYY_SLASH, MMDDYYYY_DASH, 00036 YYYYMD_SLASH, YYYYMD_DASH, 00037 DDMMYY_PERIOD, DDMMYYYY_PERIOD, 00038 DMY_SLASH, DMY_DASH, 00039 DDMMY_SLASH, DDMMY_DASH, 00040 DMYYYY_SLASH, DMYYYY_DASH, 00041 DDMMYYYY_SLASH, DDMMYYYY_DASH, 00042 DD, MM, Month, YYYY, YY, Y 00043 }; 00044 00048 static QString formatDate( const QDate & value, int format ); 00049 00053 static int count( QMemArray < double >*values ); 00054 00058 static double sum( QMemArray < double >*values ); 00059 00063 static double average( QMemArray < double >*values ); 00064 00068 static double variance( QMemArray < double >*values ); 00069 00073 static double stdDeviation( QMemArray < double >*values ); 00074 }; 00075 00076 #endif