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.5 - (hide annotations) (download) (as text)
Sat Jan 22 00:18:33 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
CVS Tags: mv_to_sourceforge_20050217, demo20050128
Changes since 1.4: +13 -12 lines
File MIME type: text/x-chdr
・indexID を unsigned にした.

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

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