MessageReporter.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef MessageReporter_INCLUDED
#define MessageReporter_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "types.h"
#include "MessageFormatter.h"
#include "Boolean.h"
#include "OutputCharStream.h"
#include "Message.h"
#include "Location.h"
#include "StringC.h"
#ifdef SP_NAMESPACE
#endif
enum Option {
openElements = 01,
openEntities = 02,
messageNumbers = 04
};
// The OutputCharStream will be deleted by the MessageReporter
~MessageReporter();
void setMessageStream(OutputCharStream *);
void dispatchMessage(const Message &);
};
void setProgramName(const StringC &);
OutputCharStream &os();
unsigned options_;
};
inline
{
return *os_;
}
inline
{
}
inline
{
os_ = 0;
return tem;
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not MessageReporter_INCLUDED */