Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtinfo / dtinfogen / infolib / etc / SGMLDefn.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: SGMLDefn.h /main/2 1996/07/18 16:48:35 drk $ */
24 #ifndef SGML_DEFN_HDR
25 #define SGML_DEFN_HDR
26
27 enum DEFN_TYPE {
28   INVALID=-1,
29   ENTITY_TYPE,
30   NOTATION_TYPE,
31   SUBDOC_TYPE
32 };
33
34 class SGMLDefn {
35   
36 friend int yylex();
37 friend class Dispatch;
38 friend class EntityList;
39
40 private:
41
42   char *sys_id;
43   char *pub_id;
44   char *file_name;
45   int   name;
46   DEFN_TYPE type;
47   SGMLDefn *next;
48
49 protected:
50
51   void store_sys_id( char *sid );
52   void store_pub_id( char *pid );
53   void store_defn( DEFN_TYPE, char * );
54   void store_file_name( char *file_name );
55   SGMLDefn &operator=( SGMLDefn & );
56
57
58 public:
59
60   int   getName() const { return(name); }
61   char *getFileName() const { return(file_name); }
62   
63   SGMLDefn();
64   ~SGMLDefn();
65 };
66
67
68 #endif
69   
70