Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips/AL/index.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download) (as text)
Wed Jan 19 06:07:07 2005 UTC (19 years, 2 months ago) by youi
Branch: MAIN
Changes since 1.3: +11 -6 lines
File MIME type: text/x-chdr
certify_t, indexop_tを定義した.

1 aga 1.1 /*
2     *
3     * ?ゃ?潟???????鴻???若???若??膊∞?????????鴻???荐?
4     *
5 youi 1.4 * $Revision: 1.3 $
6 aga 1.1 */
7    
8     #if !defined( INDEX_H )
9     #define INDEX_H
10    
11     #include "common.h"
12     #include "item.h"
13    
14     typedef unsigned int openlevel_t;
15 youi 1.4 typedef unsigned int certify_t;
16     typedef unsigned int indexop_t;
17 aga 1.1
18     class index : public item{
19     private:
20 aga 1.2 int parentXID;
21     int ownerUID;
22     int ownerGID;
23 aga 1.1 openlevel_t openLevel;
24 aga 1.2 unsigned int sortNumber;
25 aga 1.1 public:
26 aga 1.2 const static openlevel_t OL_PUBLIC = 1;
27     const static openlevel_t OL_GROUP_ONLY = 2;
28     const static openlevel_t OL_PRIVATE = 3;
29 aga 1.1
30 youi 1.4 const static certify_t NOT_CERTIFIED = 0;
31     const static certify_t CERTIFY_REQUIRED = 1;
32     const static certify_t CERTIFIED = 2;
33    
34     //IDs of index operation
35     const static indexop_t OP_REGISTER = 1;
36     const static indexop_t OP_UNREGISTER = 2;
37    
38 aga 1.1 index();
39     ~index();
40    
41 aga 1.2 int getIndexID() const;
42 aga 1.1 int getParentIndexID() const;
43 aga 1.2 int getOwnerUID() const;
44     int getOwnerGID() const;
45 aga 1.1 openlevel_t getOpenLevel() const;
46 aga 1.2 unsigned int getSortNumber() const;
47 aga 1.1
48 aga 1.2 void setIndexID(int);
49 aga 1.1 void setParentIndexID(int);
50 aga 1.2 void setOwnerUID(int);
51     void setOwnerGID(int);
52 aga 1.1 void setOpenLevel(openlevel_t);
53 aga 1.2 void setSortNumber(unsigned int);
54 aga 1.1
55     bool isPublic() const;
56     bool isGroupOnly() const;
57     bool isPrivate() const;
58    
59     };
60    
61     typedef class index index_t; // "index"????????篁????贋???т戎????????????????????
62    
63     #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26