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