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.4 - (show annotations) (download) (as text)
Fri Mar 11 20:00:29 2005 UTC (19 years, 1 month ago) by orrisroot
Branch: MAIN
Changes since 1.3: +1 -0 lines
File MIME type: text/x-c++src
- Autotoolized XooNiPs Abstract Layer projects.
- changelog.cc commonal.cc index.cc item.cc :
    included <time.h> header file for undefined data type 'time_t' error.

1 /*
2 *
3 * インデックスキーワード管理用クラスの定義
4 *
5 * $Revision $
6 *
7 */
8
9
10 #include <time.h>
11 #include "index.h"
12
13 index::index()
14 {
15 parentXID = 0;
16 ownerUID = 0;
17 ownerGID = 0;
18 openLevel = 0;
19 sortNumber = 0;
20 }
21
22 index::~index(){}
23
24
25 indexid_t index::getIndexID() const { return getItemID(); }
26 indexid_t index::getParentIndexID() const { return parentXID; }
27 unsigned int index::getOwnerUID() const { return ownerUID; }
28 unsigned int index::getOwnerGID() const { return ownerGID; }
29 openlevel_t index::getOpenLevel() const { return openLevel; }
30 unsigned int index::getSortNumber() const { return sortNumber; }
31
32 bool index::isPublic() const { return openLevel == OL_PUBLIC; }
33 bool index::isGroupOnly() const { return openLevel == OL_GROUP_ONLY; }
34 bool index::isPrivate() const { return openLevel == OL_PRIVATE; }
35
36 void index::setIndexID(indexid_t indexID_){ setItemID( indexID_ ); }
37 void index::setParentIndexID(indexid_t parentXID_){ parentXID = parentXID_; }
38 void index::setOwnerUID(unsigned int ownerUID_){ ownerUID = ownerUID_; }
39 void index::setOwnerGID(unsigned int ownerGID_){ ownerGID = ownerGID_; }
40 void index::setOpenLevel(openlevel_t openLevel_){ openLevel = openLevel_; }
41 void index::setSortNumber(unsigned int sortNumber_){ sortNumber = sortNumber_; }
42
43

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