| 11 |
#include "common.h" |
#include "common.h" |
| 12 |
#include "item.h" |
#include "item.h" |
| 13 |
|
|
| 14 |
|
typedef unsigned int indexid_t; |
| 15 |
typedef unsigned int openlevel_t; |
typedef unsigned int openlevel_t; |
| 16 |
typedef unsigned int certify_t; |
typedef unsigned int certify_t; |
| 17 |
typedef unsigned int indexop_t; |
typedef unsigned int indexop_t; |
| 18 |
|
|
| 19 |
class index : public item{ |
class index : public item{ |
| 20 |
private: |
private: |
| 21 |
int parentXID; |
indexid_t parentXID; |
| 22 |
int ownerUID; |
unsigned int ownerUID; |
| 23 |
int ownerGID; |
unsigned int ownerGID; |
| 24 |
openlevel_t openLevel; |
openlevel_t openLevel; |
| 25 |
unsigned int sortNumber; |
unsigned int sortNumber; |
| 26 |
public: |
public: |
| 39 |
index(); |
index(); |
| 40 |
~index(); |
~index(); |
| 41 |
|
|
| 42 |
int getIndexID() const; |
indexid_t getIndexID() const; |
| 43 |
int getParentIndexID() const; |
indexid_t getParentIndexID() const; |
| 44 |
int getOwnerUID() const; |
unsigned int getOwnerUID() const; |
| 45 |
int getOwnerGID() const; |
unsigned int getOwnerGID() const; |
| 46 |
openlevel_t getOpenLevel() const; |
openlevel_t getOpenLevel() const; |
| 47 |
unsigned int getSortNumber() const; |
unsigned int getSortNumber() const; |
| 48 |
|
|
| 49 |
void setIndexID(int); |
void setIndexID(indexid_t); |
| 50 |
void setParentIndexID(int); |
void setParentIndexID(indexid_t); |
| 51 |
void setOwnerUID(int); |
void setOwnerUID(unsigned int); |
| 52 |
void setOwnerGID(int); |
void setOwnerGID(unsigned int); |
| 53 |
void setOpenLevel(openlevel_t); |
void setOpenLevel(openlevel_t); |
| 54 |
void setSortNumber(unsigned int); |
void setSortNumber(unsigned int); |
| 55 |
|
|