21 #include "ParserEventGeneratorKit.h"    43 void show_line_number()
    45   extern SGMLApplication::OpenEntityPtr 
entity_ptr;
    46   extern SGMLApplication::Position 
position;
    51     SGMLApplication::Location *location = 
new SGMLApplication::Location(entity_ptr, position);
    52     if (location->lineNumber < LONG_MAX)
    53       cerr << 
"(Above message occurred on Line " << location->lineNumber << 
", Column " << location->columnNumber << 
")" << endl;
    70       cerr << 
"LibOFX DEBUG: " << message << 
"\n";
    77       cerr << 
"LibOFX DEBUG1: " << message << 
"\n";
    84       cerr << 
"LibOFX DEBUG2: " << message << 
"\n";
    91       cerr << 
"LibOFX DEBUG3: " << message << 
"\n";
    98       cerr << 
"LibOFX DEBUG4: " << message << 
"\n";
   105       cerr << 
"LibOFX DEBUG5: " << message << 
"\n";
   112       cerr << 
"LibOFX STATUS: " << message << 
"\n";
   119       cerr << 
"LibOFX INFO: " << message << 
"\n";
   126       cerr << 
"LibOFX WARNING: " << message << 
"\n";
   133       cerr << 
"LibOFX ERROR: " << message << 
"\n";
   140       cerr << 
"LibOFX PARSER: " << message << 
"\n";
   145     cerr << 
"LibOFX UNKNOWN ERROR CLASS, This is a bug in LibOFX\n";
 
SGMLApplication::Position position
int message_out(OfxMsgType error_type, const string message)
Message output function. 
SGMLApplication::OpenEntityPtr entity_ptr
Various simple functions for type conversion & al. 
Message IO functionality.