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.3 - (hide annotations) (download) (as text)
Sat Jan 15 00:39:16 2005 UTC (19 years, 2 months ago) by aga
Branch: MAIN
Changes since 1.2: +1 -5 lines
File MIME type: text/x-c++src
・x_xnpaccount_item_basicの構造を変更.

1 aga 1.1 /*
2     *
3     * ?≪?ゃ????(BasicInformation)膊∞?????????鴻???臂?/span>
4     *
5 aga 1.3 * $Revision: 1.2 $
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     contributorUID = 0;
18 aga 1.2 title = 0; setValue( &title, "" );
19     keywords = 0; setValue( &keywords, "" );
20     description = 0; setValue( &description, "" );
21 aga 1.1 lastUpdateDate = 0;
22     creationDate = 0;
23     }
24    
25     item::~item()
26     {
27     if( title != 0 ) delete[] title;
28     if( keywords != 0 ) delete[] keywords;
29     if( description != 0 ) delete[] description;
30     }
31    
32 aga 1.2 int item::getItemID() const { return iid; }
33 aga 1.1 int item::getItemTypeID() const { return itemTypeID; }
34     int item::getContributorUID() const { return contributorUID; }
35     const char *item::getTitle() const { return title; }
36     const char *item::getKeywords() const { return keywords; }
37     const char *item::getDescription() const { return description; }
38     time_t item::getLastUpdateDate() const { return lastUpdateDate; }
39     time_t item::getCreationDate() const { return creationDate; }
40    
41 aga 1.2 void item::setItemID(int iid_){ iid = iid_; }
42 aga 1.1 void item::setItemTypeID(int itemTypeID_){ itemTypeID = itemTypeID_; }
43     void item::setContributorUID(int contributorUID_){ contributorUID = contributorUID_; }
44     void item::setTitle(const char* title_){ setValue( &this -> title, title_ ); }
45     void item::setKeywords(const char* keywords_){ setValue( &this -> keywords, keywords_ ); }
46 aga 1.2 void item::setDescription(const char* description_){ setValue( &this -> description, description_ ); }
47 aga 1.1 void item::setLastUpdateDate(time_t lastUpdateDate_){ lastUpdateDate = lastUpdateDate_; }
48     void item::setCreationDate(time_t creationDate_){ creationDate = creationDate_; }
49    

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