| 1 |
/* |
| 2 |
* -------------------------------------------------------------------------- |
| 3 |
* XooNiPs Xoops modules for Neuroinformatics Platforms |
| 4 |
* Copyright (C) 2005 RIKEN, Japan. All rights reserved. |
| 5 |
* http://sourceforge.jp/projects/xoonips/ |
| 6 |
* -------------------------------------------------------------------------- |
| 7 |
* This program is free software; you can redistribute it and/or |
| 8 |
* modify it under the terms of the GNU General Public License |
| 9 |
* as published by the Free Software Foundation; either version 2 |
| 10 |
* of the License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this program; if not, write to the Free Software |
| 19 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 20 |
* -------------------------------------------------------------------------- |
| 21 |
* |
| 22 |
* |
| 23 |
* 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 |
| 24 |
* |
| 25 |
* $Revision $ |
| 26 |
* |
| 27 |
*/ |
| 28 |
|
| 29 |
|
| 30 |
#include <time.h> |
| 31 |
#include "index.h" |
| 32 |
|
| 33 |
index::index() |
| 34 |
{ |
| 35 |
parentXID = 0; |
| 36 |
ownerUID = 0; |
| 37 |
ownerGID = 0; |
| 38 |
openLevel = 0; |
| 39 |
sortNumber = 0; |
| 40 |
} |
| 41 |
|
| 42 |
index::~index(){} |
| 43 |
|
| 44 |
|
| 45 |
indexid_t index::getIndexID() const { return getItemID(); } |
| 46 |
indexid_t index::getParentIndexID() const { return parentXID; } |
| 47 |
unsigned int index::getOwnerUID() const { return ownerUID; } |
| 48 |
unsigned int index::getOwnerGID() const { return ownerGID; } |
| 49 |
openlevel_t index::getOpenLevel() const { return openLevel; } |
| 50 |
unsigned int index::getSortNumber() const { return sortNumber; } |
| 51 |
|
| 52 |
bool index::isPublic() const { return openLevel == OL_PUBLIC; } |
| 53 |
bool index::isGroupOnly() const { return openLevel == OL_GROUP_ONLY; } |
| 54 |
bool index::isPrivate() const { return openLevel == OL_PRIVATE; } |
| 55 |
|
| 56 |
void index::setIndexID(indexid_t indexID_){ setItemID( indexID_ ); } |
| 57 |
void index::setParentIndexID(indexid_t parentXID_){ parentXID = parentXID_; } |
| 58 |
void index::setOwnerUID(unsigned int ownerUID_){ ownerUID = ownerUID_; } |
| 59 |
void index::setOwnerGID(unsigned int ownerGID_){ ownerGID = ownerGID_; } |
| 60 |
void index::setOpenLevel(openlevel_t openLevel_){ openLevel = openLevel_; } |
| 61 |
void index::setSortNumber(unsigned int sortNumber_){ sortNumber = sortNumber_; } |
| 62 |
|
| 63 |
|