classes.h
Go to the documentation of this file.
1 /* Copyright (C) 2000-2004 Thomas Bopp, Thorsten Hampel, Ludger Merkens
2  *
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  *
17  * $Id: classes.h,v 1.1 2008/03/31 13:39:57 exodusd Exp $
18  */
19 
20 #ifndef _CLASSES_H
21 #define _CLASSES_H
22 
23 #include "config.h"
24 
25 #define CLASS_USER CLASS_PATH + "user.pike" //TODO: this is redefined below!
26 
27 #define CLASS_PATH "/classes/"
28 
29 #define CLASS_NAME_OBJECT "Object"
30 #define CLASS_NAME_CONTAINER "Container"
31 #define CLASS_NAME_ROOM "Room"
32 #define CLASS_NAME_USER "User"
33 #define CLASS_NAME_DOCUMENT "Document"
34 #define CLASS_NAME_LINK "Link"
35 #define CLASS_NAME_GROUP "Group"
36 #define CLASS_NAME_EXIT "Exit"
37 #define CLASS_NAME_DOCEXTERN "DocExtern"
38 #define CLASS_NAME_DOCLPC "DocLPC"
39 #define CLASS_NAME_SCRIPT "Script"
40 #define CLASS_NAME_DOCHTML "DocHTML"
41 #define CLASS_NAME_DATE "Date"
42 #define CLASS_NAME_MESSAGEBOARD "Messageboard"
43 #define CLASS_NAME_GHOST "Ghost" //TODO: there's no "Ghost" class
44 #define CLASS_NAME_SERVERGATE "ServerGate"
45 #define CLASS_NAME_TRASHBIN "TrashBin"
46 #define CLASS_NAME_DOCXML "DocXML"
47 #define CLASS_NAME_DOCXSL "DocXSL"
48 #define CLASS_NAME_LAB "Laboratory" //TODO: there's no "Laboratory" class
49 #define CLASS_NAME_CALENDAR "Calendar"
50 #define CLASS_NAME_DRAWING "Drawing"
51 #define CLASS_NAME_AGENT "Agent"
52 #define CLASS_NAME_ANNOTATION "Annotation" //TODO: there's no "Annotation" class
53 
54 #define CLASS_OBJECT (1<<0)
55 #define CLASS_CONTAINER (1<<1)
56 #define CLASS_ROOM (1<<2)
57 #define CLASS_USER (1<<3)
58 #define CLASS_DOCUMENT (1<<4)
59 #define CLASS_LINK (1<<5)
60 #define CLASS_GROUP (1<<6)
61 #define CLASS_EXIT (1<<7)
62 #define CLASS_DOCEXTERN (1<<8)
63 #define CLASS_DOCLPC (1<<9)
64 #define CLASS_SCRIPT (1<<10)
65 #define CLASS_DOCHTML (1<<11)
66 #define CLASS_DATE (1<<12)
67 #define CLASS_FACTORY (1<<13)
68 #define CLASS_MODULE (1<<14)
69 #define CLASS_DATABASE (1<<15)
70 #define CLASS_PACKAGE (1<<16)
71 #define CLASS_IMAGE (1<<17)
72 #define CLASS_MESSAGEBOARD (1<<18)
73 #define CLASS_GHOST (1<<19)
74 #define CLASS_WEBSERVICE (1<<20)
75 #define CLASS_TRASHBIN (1<<21)
76 #define CLASS_DOCXML (1<<22)
77 #define CLASS_DOCXSL (1<<23)
78 #define CLASS_LAB (1<<24)
79 #define CLASS_CALENDAR (1<<27)
80 #define CLASS_SCORM (1<<28)
81 #define CLASS_DRAWING (1<<29)
82 #define CLASS_AGENT (1<<30)
83 
84 #define CLASS_ALL 0x3cffffff // bits 25 and 26 aren't used by CLASS_*
85 
86 #define CLASS_SERVER 0x00000000
87 #define CLASS_USERDEF 0x30000000
88 
89 #endif