Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

worm_defs.h

Go to the documentation of this file.
00001 #ifndef _WORM_DEFS_H
00002 #define _WORM_DEFS_H
00003 
00004 /*
00005 ** PRIORITY LEVELS
00006 **
00007 ** CAUTION: Note that the highest priority (most important)
00008 **          items are assigned WORM_PRIORITY_MIN.
00009 **          That is, these defines are for the programming
00010 **          domain, not the work domain.
00011 */
00012 #define WORM_PRIORITY_NONE    0 /* state when no message present */
00013 #define WORM_PRIORITY_COMMAND 1 /* priority for command messages */
00014 #define WORM_PRIORITY_MIN     1 /* the highest priority */
00015 #define WORM_PRIORITY_MAX     9 /* the lowest priority */
00016 #define WORM_PRIORITY_COUNT  10 /* simplifies loops, DO NOT USE AS A PRIORITY */
00017 
00018 #define WORM_PRIORITY_DEF     9 /* default priority => lowest work priority */
00019 
00020 typedef short WORM_PRIORITY;
00021 
00022 
00023 enum WORM_LOGGING_LEVEL
00024 {
00025     WORM_LOG_MU       = -1 // mu is a Japanese term "not relevant to this domain"
00026                            // this is used for initialization, thus this value
00027                            // should never be used, especially never in the
00028                            // configuration (.d) files.
00029   , WORM_LOG_NONE     =  0
00030   , WORM_LOG_ERRORS   =  1
00031   , WORM_LOG_STATUS   =  2
00032   , WORM_LOG_TRACKING =  3
00033   , WORM_LOG_DETAILS  =  4
00034   , WORM_LOG_DEBUG    =  5
00035 };
00036 
00037 
00038 
00039 #if   defined(_Windows)
00040 #define PathDelim "\\"
00041 #elif defined(_Solaris)
00042 #define PathDelim "/"
00043 #else
00044 #error worm_defs.h not completed for this O/S
00045 #endif
00046 
00047 
00048 #endif

Generated on Tue May 6 09:16:13 2003 for Earthworm Libs by doxygen1.3-rc3