Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/index.h

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


Revision 1.4 - (show 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 /*
2 *
3 * ?ゃ?潟???????鴻???若???若??膊∞?????????鴻???荐?
4 *
5 * $Revision: 1.3 $
6 */
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 typedef unsigned int certify_t;
16 typedef unsigned int indexop_t;
17
18 class index : public item{
19 private:
20 int parentXID;
21 int ownerUID;
22 int ownerGID;
23 openlevel_t openLevel;
24 unsigned int sortNumber;
25 public:
26 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
30 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 index();
39 ~index();
40
41 int getIndexID() const;
42 int getParentIndexID() const;
43 int getOwnerUID() const;
44 int getOwnerGID() const;
45 openlevel_t getOpenLevel() const;
46 unsigned int getSortNumber() const;
47
48 void setIndexID(int);
49 void setParentIndexID(int);
50 void setOwnerUID(int);
51 void setOwnerGID(int);
52 void setOpenLevel(openlevel_t);
53 void setSortNumber(unsigned int);
54
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