00001 #ifndef __J2K__CONST_HPP__
00002 #define __J2K__CONST_HPP__
00003
00004 #include <assert.h>
00005
00006 #include <iostream.h>
00007
00008 #include <stdio.h>
00009 #include <stdlib.h>
00010 #include <string.h>
00011
00012 #include <math.h>
00013
00014 #include <time.h>
00015 #include <sys/timeb.h>
00016
00017 #ifdef DOS
00018 typedef int bool;
00019 #define false 0
00020 #define true 1
00021 #endif
00022
00023 #define FALSE false // Define CAPITAL bool constant
00024 #define TRUE true
00025
00026 typedef unsigned long ulong;
00027 typedef unsigned int uint;
00028
00029 typedef long Elem;
00030
00031
00032
00033
00034 const char* const msgS_IDFound = "This was the element found when searching on its ID.";
00035 const char* const msgS_IDnotFound = "No element with this ID was found.";
00036 const char* const msgC_IDnotFound = "No change was made because no element with this ID was found.";
00037 const char* const msgI_IDexist = "This record was not inserted because an element with the same ID already existed";
00038 const char* const msgD_IDnotFound = "The ID of no element matched the ID of this record, so nothing was deleted.";
00039 const char* const msgInvalidOp = "This record contains an impermissible operation code.";
00040 const char* const msgCompare = "The average number of ID comparisons for ";
00041
00042 const char* const msgTotalCmp = "The total number of ID comparisons for";
00043 const char* const msgAvgCmp = "The average number of ID comparisons for";
00044
00045 const int LINE_SIZE = 79;
00046
00047
00048
00049 const char* const msg_OK =
00050 "The parentheses in the above expression are balanced and properly nested.\n\n";
00051
00052 const char* const msg_BAD =
00053 "The offending parenthesis in the above expression is above the question mark.\n\n\n";
00054
00055 #endif // Const.hpp