Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

stilcom.h File Reference

#include <iostream>
#include <fstream>
#include <netinet/in.h>

Go to the source code of this file.

Defines

#define TRUE   1
#define FALSE   0
#define MIN(X, Y)   ((X) < (Y) ? (X) : (Y))
#define MAX(X, Y)   ((X) > (Y) ? (X) : (Y))
#define ABS(X)   ((X) < 0 ? -(X) : (X))
#define INRANGE(X, Y, Z)   ((X) >= (Y) && (X) <= (Z))
#define TRACEID(FNAME, TRACELEV)
#define MSGSTR   com_msgstr
#define MSG(SEVLEV, PRINTFARG)

Typedefs

typedef int BOOLEAN
typedef char * STRING
typedef unsigned char UCHAR
typedef signed char SCHAR
typedef unsigned long int ULONG
typedef signed long int LONG
typedef unsigned short int USHORT
typedef signed short int SHORT
typedef signed long long int LONG_LONG
typedef unsigned long long int LONG_ULONG
typedef float FLOAT
typedef double DOUBLE
typedef long double LDOUBLE
typedef LONG_LONG TIME_T

Enumerations

enum  MSG_LEV_ {
  SEV_T,
  SEV_S,
  SEV_E,
  SEV_W,
  SEV_I,
  NOID,
  FLUSH,
  STATS,
  SEV_1,
  SEV_2,
  SEV_3,
  SEV_4,
  SEV_5
}

Functions

LONG com_abortrc (STRING)
LONG com_debuglevel (STRING)
void com_msg (MSG_LEV_, const char *, LONG *, const char *)
const char * com_msgstr (const char *,...)

Variables

LONG COM_RC
LONG COM_SRC
LONG COM_ABORT_RC
LONG COM_DBGLEV
LONG COM_MSGFLUSH


Define Documentation

#define ABS  )     ((X) < 0 ? -(X) : (X))
 

#define FALSE   0
 

#define INRANGE X,
Y,
 )     ((X) >= (Y) && (X) <= (Z))
 

#define MAX X,
 )     ((X) > (Y) ? (X) : (Y))
 

#define MIN X,
 )     ((X) < (Y) ? (X) : (Y))
 

#define MSG SEVLEV,
PRINTFARG   ) 
 

Value:

if (SEVLEV-6 <= COM_DBGLEV) \
            com_msg(SEVLEV,(const char*)FUNCNAME,&SRC,(const char*)com_msgstr PRINTFARG);

#define MSGSTR   com_msgstr
 

#define TRACEID FNAME,
TRACELEV   ) 
 

Value:

LONG SRC = 0;\
          const char* FUNCNAME = FNAME;\
          MSG(TRACELEV,("entering ..."));

#define TRUE   1
 


Typedef Documentation

typedef int BOOLEAN
 

typedef double DOUBLE
 

typedef float FLOAT
 

typedef long double LDOUBLE
 

typedef signed long int LONG
 

typedef signed long long int LONG_LONG
 

typedef unsigned long long int LONG_ULONG
 

typedef signed char SCHAR
 

typedef signed short int SHORT
 

typedef char* STRING
 

typedef LONG_LONG TIME_T
 

typedef unsigned char UCHAR
 

typedef unsigned long int ULONG
 

typedef unsigned short int USHORT
 


Enumeration Type Documentation

enum MSG_LEV_
 

Enumeration values:
SEV_T 
SEV_S 
SEV_E 
SEV_W 
SEV_I 
NOID 
FLUSH 
STATS 
SEV_1 
SEV_2 
SEV_3 
SEV_4 
SEV_5 


Function Documentation

LONG com_abortrc STRING  abortlev  ) 
 

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Name : com_abortrc ³ ³ ³ ³ Purpose : Common processor of the abort level. ³ ³ ³ ³ Parms : (STRING) the specified abort level (W, E, S or T). ³ ³ ³ ³ Returns : (LONG ) SRC. ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

LONG com_debuglevel STRING  debuglev  ) 
 

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Name : com_debuglevel ³ ³ ³ ³ Purpose : Common processor of the debug level. ³ ³ ³ ³ Parms : (STRING) the specified debug level (0, 1, 2, 3, 4 or 5). ³ ³ ³ ³ Returns : (LONG ) SRC. ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

void com_msg MSG_LEV_  msg_lev,
const char *  fileid,
LONG p_SRC,
const char *  msgtext
 

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Name : com_msg ³ ³ ³ ³ Purpose : Common processor for handling message requests. Also checks ³ ³ the corresponding message code against the global return ³ ³ code to determine if processing should terminate. ³ ³ ³ ³ Parms : (MSG_LEV_) the type of message being written. ³ ³ (const char *) the file id. ³ ³ (LONG*) pointer to the local return code ³ ³ (const char *) printf-type format sstring. ³ ³ ³ ³ Returns : (void) ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

const char* com_msgstr const char *  format,
  ...
 

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Name : com_msgstr ³ ³ ³ ³ Purpose : Format a sstring with printf-type syntax. ³ ³ ³ ³ Parms : (const char *) printf-type format sstring. ³ ³ ³ ³ Returns : (STRING) ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ


Variable Documentation

LONG COM_ABORT_RC
 

LONG COM_DBGLEV
 

LONG COM_MSGFLUSH
 

LONG COM_RC
 

LONG COM_SRC
 


This page last updated on 6 Jul 2007

SourceForge.net Logo