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