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

occCommon.h File Reference

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

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Functions

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

Variables

bool showParseErrors
bool showMopWarnings
bool showWarnings
bool stopOnParseErrors
bool ignoreNamespaceAliases
bool deleteTemporaryFiles
char occFatalErrorPrefix [256]
char occParseErrorPrefix [256]
char occWarningPrefix [256]
char mopErrorPrefix [256]
char mopWarningPrefix [256]
char occFirstParseErrorComment [1024]
char occParseErrorCountMessage [256]
bool occParseErrorOccured

Detailed Description

Declarations 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

All of the variables were added to OpenC++ by Josef Troch. Most of them affects behaviour of the OpenC++ internal parsing or translating functions. In certain cases I need them to behave differently in IOPC SP, but I don't want to impose this behaviour on original OpenC++.


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
 

Should messages about parse error be shown?

bool showMopWarnings
 

Should metaobject protocol warnings be shown?

bool showWarnings
 

Should common warnings be shown?

bool stopOnParseErrors
 

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

bool ignoreNamespaceAliases
 

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

bool deleteTemporaryFiles
 

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

char occFatalErrorPrefix[256]
 

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

char occParseErrorPrefix[256]
 

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

char occWarningPrefix[256]
 

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

char mopErrorPrefix[256]
 

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

char mopWarningPrefix[256]
 

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

char occFirstParseErrorComment[1024]
 

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

char occParseErrorCountMessage[256]
 

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

bool occParseErrorOccured
 

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


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