Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips/AL/item.cc

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


Revision 1.2 - (hide annotations) (download) (as text)
Fri Jan 14 10:34:45 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
Changes since 1.1: +8 -8 lines
File MIME type: text/x-c++src
。ヲitemID -> iid.
。ヲsetDescriptor -> setDescription.

1 aga 1.1 /*
2     *
3     * 繧「繧、繝?Β(BasicInformation)邂。逅?畑繧ッ繝ゥ繧ケ縺ョ螳夂セゥ
4     *
5 aga 1.2 * $Revision: 1.1 $
6 aga 1.1 */
7    
8     #include <stdlib.h>
9    
10     #include "item.h"
11     #include "common.h"
12    
13     item::item()
14     {
15     iid = 0;
16     itemTypeID = 0;
17 aga 1.2 subtype = 0; setValue( &subtype, "" );
18 aga 1.1 contributorUID = 0;
19 aga 1.2 title = 0; setValue( &title, "" );
20     keywords = 0; setValue( &keywords, "" );
21     description = 0; setValue( &description, "" );
22 aga 1.1 lastUpdateDate = 0;
23     creationDate = 0;
24     }
25    
26     item::~item()
27     {
28     if( subtype != 0 ) delete[] subtype;
29     if( title != 0 ) delete[] title;
30     if( keywords != 0 ) delete[] keywords;
31     if( description != 0 ) delete[] description;
32     }
33    
34 aga 1.2 int item::getItemID() const { return iid; }
35 aga 1.1 int item::getItemTypeID() const { return itemTypeID; }
36     const char *item::getSubtype() const { return subtype; }
37     int item::getContributorUID() const { return contributorUID; }
38     const char *item::getTitle() const { return title; }
39     const char *item::getKeywords() const { return keywords; }
40     const char *item::getDescription() const { return description; }
41     time_t item::getLastUpdateDate() const { return lastUpdateDate; }
42     time_t item::getCreationDate() const { return creationDate; }
43    
44 aga 1.2 void item::setItemID(int iid_){ iid = iid_; }
45 aga 1.1 void item::setItemTypeID(int itemTypeID_){ itemTypeID = itemTypeID_; }
46     void item::setSubtype(const char *subtype_){ setValue( &this -> subtype, subtype_ ); }
47     void item::setContributorUID(int contributorUID_){ contributorUID = contributorUID_; }
48     void item::setTitle(const char* title_){ setValue( &this -> title, title_ ); }
49     void item::setKeywords(const char* keywords_){ setValue( &this -> keywords, keywords_ ); }
50 aga 1.2 void item::setDescription(const char* description_){ setValue( &this -> description, description_ ); }
51 aga 1.1 void item::setLastUpdateDate(time_t lastUpdateDate_){ lastUpdateDate = lastUpdateDate_; }
52     void item::setCreationDate(time_t creationDate_){ creationDate = creationDate_; }
53    

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