Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

occCommon.cpp File Reference

Definitions of global variables used by both pure OpenC++ and IOPC SP and some helper global functions. More...

#include <stdlib.h>

Include dependency graph for occCommon.cpp:

Include dependency graph

Functions

void setCleanupFunction (void(*_cleanupFunction)(int))
void exitProgram (int errorCode)

Variables

bool showParseErrors = 1
bool showMopWarnings = 1
bool showWarnings = 1
bool stopOnParseErrors = 1
bool ignoreNamespaceAliases = 0
bool deleteTemporaryFiles = 1
char occFatalErrorPrefix [256] = "OpenC++: "
char occParseErrorPrefix [256] = "OpenC++: "
char occWarningPrefix [256] = "OpenC++: "
bool occParseErrorOccured = 0
char occFirstParseErrorComment [1024] = ""
char occParseErrorCountMessage [256] = " parse error(s). Program stops.\n"
char mopErrorPrefix [256] = "MOP error: "
char mopWarningPrefix [256] = "MOP warning: "
void(* cleanupFunction )(int)=NULL

Detailed Description

Definitions of global variables used by both pure OpenC++ and IOPC SP and some helper global functions.

Author:
Josef Troch (josef.troch@email.cz)
Date:
2003 - 2004

Function Documentation

void setCleanupFunction void(*  _cleanupFunction)(int)  ) 
 

Sets the cleanup function that is called before IOPC SP / OpenC++ terminates.

void exitProgram int  errorCode  ) 
 

This function is used instead of standard exit() to terminate the program. It calls cleanup function (see setCleanupFunction()) before the exit() call.

Parameters:
errorCode Error code that IOPC SP / OpenC++ should return.


Variable Documentation

bool showParseErrors = 1
 

Should messages about parse error be shown?

bool showMopWarnings = 1
 

Should metaobject protocol warnings be shown?

bool showWarnings = 1
 

Should common warnings be shown?

bool stopOnParseErrors = 1
 

Should the parsing / translation stop if some parse error is encountered?

bool ignoreNamespaceAliases = 0
 

Flag that activates a hack (by JT) that suppresses error message when definition of namespace alias is found.

bool deleteTemporaryFiles = 1
 

Should IOPC SP / OpenC++ temporary files be deleted?

char occFatalErrorPrefix[256] = "OpenC++: "
 

String used as error message prefix if some fatal error is encountered. Something like "Error: ".

char occParseErrorPrefix[256] = "OpenC++: "
 

String used as error message prefix if some parse error is encountered. Something like "Error: ".

char occWarningPrefix[256] = "OpenC++: "
 

String used as warning message prefix. Something like "Warning: ".

bool occParseErrorOccured = 0
 

Variable that is true if some parse error had been found.

char occFirstParseErrorComment[1024] = ""
 

Message displayed when first parse error is encountered. This message is displayed before the message decribing the error.

char occParseErrorCountMessage[256] = " parse error(s). Program stops.\n"
 

Message used to tell user how many parse errors had been found. The number of the errors is prepended to the message.

char mopErrorPrefix[256] = "MOP error: "
 

String used as error message prefix if some metaobject protocol error is encountered. Something like "Error: ".

char mopWarningPrefix[256] = "MOP warning: "
 

String used as warning message prefix if displaying some metaobject protocol warning. Something like "Warning: ".

void(* cleanupFunction)(int) = NULL
 

Pointer to the cleanup function. See setCleanupFunction().


Generated on Wed Aug 11 22:34:36 2004 for IOPC by Doxygen 1.3.6