Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / nsgmls / Notation.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: Notation.h /main/1 1996/07/29 16:58:47 cde-hp $ */
24 // Copyright (c) 1994 James Clark
25 // See the file COPYING for copying permission.
26
27 #ifndef Notation_INCLUDED
28 #define Notation_INCLUDED 1
29 #ifdef __GNUG__
30 #pragma interface
31 #endif
32
33 #include "Owner.h"
34 #include "StringC.h"
35 #include "NamedResource.h"
36 #include "types.h"
37 #include "Ptr.h"
38 #include "ExternalId.h"
39 #include "Boolean.h"
40 #include "Attributed.h"
41 #include "StringResource.h"
42 #include "EntityDecl.h"
43
44 #ifdef SP_NAMESPACE
45 namespace SP_NAMESPACE {
46 #endif
47
48 class ParserState;
49
50 class SP_API Notation : public EntityDecl, public Attributed {
51 public:
52   Notation(const StringC &,
53            const ConstPtr<StringResource<Char> > &dtdName,
54            Boolean dtdIsBase);
55   void setExternalId(const ExternalId &, const Location &);
56   const ExternalId &externalId() const;
57   Boolean defined() const;
58   void generateSystemId(ParserState &);
59   const StringC *systemIdPointer() const;
60   const StringC *publicIdPointer() const;
61 private:
62   Notation(const Notation &);   // undefined
63   void operator=(const Notation &); // undefined
64   PackedBoolean defined_;
65   ExternalId externalId_;
66 };
67
68 inline
69 const ExternalId &Notation::externalId() const
70 {
71   return externalId_;
72 }
73
74 inline
75 Boolean Notation::defined() const
76 {
77   return defined_;
78 }
79
80 #ifdef SP_NAMESPACE
81 }
82 #endif
83
84 #endif /* not Notation_INCLUDED */