6d6070c0d3285261a71966f455fb093637be5d7d
[oweals/cde.git] / cde / programs / nsgmls / MessageTable.h
1 /* $XConsortium: MessageTable.h /main/1 1996/07/29 16:57:49 cde-hp $ */
2 // Copyright (c) 1996 James Clark
3 // See the file COPYING for copying permission.
4
5 #ifndef MessageTable_INCLUDED
6 #define MessageTable_INCLUDED 1
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 #include "Message.h"
13 #include "Boolean.h"
14 #include "StringC.h"
15 #include "sptchar.h"
16
17 #ifdef SP_NAMESPACE
18 namespace SP_NAMESPACE {
19 #endif
20
21 class SP_API MessageTable {
22 public:
23   static const MessageTable *instance();
24   virtual Boolean getText(const MessageFragment &,
25                           String<SP_TCHAR> &) const = 0;
26 private:
27   static MessageTable *instance_;
28 };
29
30 #ifdef SP_NAMESPACE
31 }
32 #endif
33
34 #endif /* not MessageTable_INCLUDED */