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

stilcom.cpp File Reference

#include <errno.h>
#include <sys/stat.h>
#include <stdarg.h>
#include "stilcomstr.h"
#include "stilcom.h"

Defines

#define COM_MSGBUF_LEN   32000

Functions

LONG com_abortrc (STRING abortlev)
LONG com_debuglevel (STRING debuglev)
void com_msg (MSG_LEV_ msg_lev, const STRING fileid, LONG *p_SRC, const STRING msgtext)
void com_msg (MSG_LEV_ msg_lev, const char *fileid, LONG *p_SRC, const char *msgtext)
const char * com_msgstr (const STRING format,...)
const char * com_msgstr (const char *format,...)

Variables

BOOLEAN buf_overflow = false
LONG COM_RC = 0
LONG COM_ABORT_RC = 16
LONG COM_DBGLEV = 0
LONG COM_MSGFLUSH = 0
char COM_MSGBUF [COM_MSGBUF_LEN] = ""
ofstream COM_ostats

Define Documentation

#define COM_MSGBUF_LEN   32000
 


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) ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

void com_msg MSG_LEV_  msg_lev,
const STRING  fileid,
LONG p_SRC,
const STRING  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) ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

const char* com_msgstr const STRING  format,
  ...
 

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Name : com_msgstr ³ ³ ³ ³ Purpose : Format a sstring with printf-type syntax. ³ ³ ³ ³ Parms : (const STRING) printf-type format sstring. ³ ³ (copy from function above-change both) ³ ³ Returns : (STRING) ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ


Variable Documentation

BOOLEAN buf_overflow = false
 

LONG COM_ABORT_RC = 16
 

LONG COM_DBGLEV = 0
 

char COM_MSGBUF[COM_MSGBUF_LEN] = ""
 

LONG COM_MSGFLUSH = 0
 

ofstream COM_ostats
 

LONG COM_RC = 0
 


This page last updated on 6 Jul 2007

SourceForge.net Logo