Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/item.cc

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

revision 1.2 by aga, Fri Jan 14 10:34:45 2005 UTC revision 1.3 by aga, Sat Jan 15 00:39:16 2005 UTC
# Line 14  item::item() Line 14  item::item()
14  {  {
15      iid = 0;      iid = 0;
16      itemTypeID = 0;      itemTypeID = 0;
     subtype = 0; setValue( &subtype, "" );  
17      contributorUID = 0;      contributorUID = 0;
18      title = 0; setValue( &title, "" );      title = 0; setValue( &title, "" );
19      keywords = 0; setValue( &keywords, "" );      keywords = 0; setValue( &keywords, "" );
# Line 25  item::item() Line 24  item::item()
24    
25  item::~item()  item::~item()
26  {  {
     if( subtype != 0 ) delete[] subtype;  
27      if( title != 0 ) delete[] title;      if( title != 0 ) delete[] title;
28      if( keywords != 0 ) delete[] keywords;      if( keywords != 0 ) delete[] keywords;
29      if( description != 0 ) delete[] description;      if( description != 0 ) delete[] description;
# Line 33  item::~item() Line 31  item::~item()
31    
32  int item::getItemID() const { return iid; }  int item::getItemID() const { return iid; }
33  int item::getItemTypeID() const { return itemTypeID; }  int item::getItemTypeID() const { return itemTypeID; }
 const char *item::getSubtype() const { return subtype; }  
34  int item::getContributorUID() const { return contributorUID; }  int item::getContributorUID() const { return contributorUID; }
35  const char *item::getTitle() const { return title; }  const char *item::getTitle() const { return title; }
36  const char *item::getKeywords() const { return keywords; }  const char *item::getKeywords() const { return keywords; }
# Line 43  time_t item::getCreationDate() const { r Line 40  time_t item::getCreationDate() const { r
40    
41  void item::setItemID(int iid_){ iid = iid_; }  void item::setItemID(int iid_){ iid = iid_; }
42  void item::setItemTypeID(int itemTypeID_){ itemTypeID = itemTypeID_; }  void item::setItemTypeID(int itemTypeID_){ itemTypeID = itemTypeID_; }
 void item::setSubtype(const char *subtype_){ setValue( &this -> subtype, subtype_ ); }  
43  void item::setContributorUID(int contributorUID_){ contributorUID = contributorUID_; }  void item::setContributorUID(int contributorUID_){ contributorUID = contributorUID_; }
44  void item::setTitle(const char* title_){ setValue( &this -> title, title_ ); }  void item::setTitle(const char* title_){ setValue( &this -> title, title_ ); }
45  void item::setKeywords(const char* keywords_){ setValue( &this -> keywords, keywords_ ); }  void item::setKeywords(const char* keywords_){ setValue( &this -> keywords, keywords_ ); }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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