Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/index.cc

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


Revision 1.2 - (show annotations) (download) (as text)
Fri Jan 14 10:34:29 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
Changes since 1.1: +16 -14 lines
File MIME type: text/x-c++src
・ownerUserID -> ownerUID, ownerGroupID -> ownerGID.
・parentIndexID -> parentXID.
・PUBLIC/GROUP_ONLY/RPIVATE -> OL_PUBLIC/OL_GROUP_ONLY/OL_PRIVATE.
・sortNumberをunsigned intに.

1 /*
2 *
3 * ?ゃ?潟???????鴻???若???若??膊∞?????????鴻???臂?/span>
4 *
5 * $Revision $
6 *
7 */
8
9
10 #include "index.h"
11
12 index::index()
13 {
14 parentXID = 0;
15 ownerUID = 0;
16 ownerGID = 0;
17 openLevel = 0;
18 sortNumber = 0;
19 }
20
21 index::~index(){}
22
23
24 int index::getIndexID() const { return getItemID(); }
25 int index::getParentIndexID() const { return parentXID; }
26 int index::getOwnerUID() const { return ownerUID; }
27 int index::getOwnerGID() const { return ownerGID; }
28 openlevel_t index::getOpenLevel() const { return openLevel; }
29 unsigned int index::getSortNumber() const { return sortNumber; }
30
31 bool index::isPublic() const { return openLevel == OL_PUBLIC; }
32 bool index::isGroupOnly() const { return openLevel == OL_GROUP_ONLY; }
33 bool index::isPrivate() const { return openLevel == OL_PRIVATE; }
34
35 void index::setIndexID(int indexID_){ setItemID( indexID_ ); }
36 void index::setParentIndexID(int parentXID_){ parentXID = parentXID_; }
37 void index::setOwnerUID(int ownerUID_){ ownerUID = ownerUID_; }
38 void index::setOwnerGID(int ownerGID_){ ownerGID = ownerGID_; }
39 void index::setOpenLevel(openlevel_t openLevel_){ openLevel = openLevel_; }
40 void index::setSortNumber(unsigned int sortNumber_){ sortNumber = sortNumber_; }
41
42

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