Main Page | Data Structures | Directories | File List | Globals

mqutil.h

Go to the documentation of this file.
00001 #ifndef _MQUTIL_H_
00002 #define _MQUTIL_H_
00003 
00004 /* Copyright (c) Kyriacos Leptos and the President and Fellows of Harvard University
00005    Release Date: 2004-11-01
00006    Part of the MapQuant suite library "mqbasic.lib" 
00007 */
00008 
00018 #define _TOGGLE(param)          \
00019 if(param == 1) param = 0;       \
00020 else if(param == 0) param = 1;  \
00021 
00022 extern int  VERBOSE;
00023 
00024 enum {ARRAY_START_ZERO = 0, ARRAY_START_ONE = 1};
00025 
00026 enum {SORT_DESCENDING = -1, SORT_ASCENDING = 1};
00027 extern int SORT_DIRECTION;
00028 
00029 extern const char* USAGE;
00030 extern const char* HELP;
00031 
00032 #ifdef WIN32
00033 extern const char* VERSION;
00034 #endif
00035 
00036 #define MAX_NO_OF_STRING_NUMBERS 10
00037 
00038 enum {MQERROR_OUT_OF_MEMORY      = 110, 
00039       MQERROR_PROPERTY_NOT_FOUND = 22};
00040 
00041 extern time_t start, stop;
00042 
00043 enum {MQ_FLOAT, MQ_INT, MQ_STRING};
00044 
00045 void    MQUtil_printIterationSeparator(int iter);
00046 void    MQUtil_printIterationSeparatorEnd(int iter);
00047 void    MQUtil_printPeakgroupDeconvolutionSeparator(int index);
00048 void    MQUtil_printSegmentRefiningSeparator(int index);
00049 void    MQUtil_printSeparatorDepthFirstSearch(int index);
00050 void    MQUtil_printSeparatorDepthFirstSearchEnd();
00051 int*    MQIntArray_createFromCommaDelString(char* string, int* nsize);
00052 
00053 int     mq_round(float n);
00054 char*   mq_ctostr(char ch);
00055 void    mq_print_separator();
00056 void    mq_fprint_separator(FILE* fp);
00057 char*   mq_get_time_flag();
00058 int     mq_is_row_available(unsigned short* row, int start_index, int stop_index);          
00059 int     mq_is_vowel(char letter);
00060 int     mq_check_bit(int a, int bit);
00061 void    mq_set_sort_direction(int direction);
00062 int     mq_count_lines(FILE* fp);
00063 MQString* mq_get_paths_env(int* npaths);
00064 
00065 #endif
00066 

Generated on Tue Feb 7 03:25:43 2006 for libmqbasic by  doxygen 1.4.4