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.1 by aga, Sat Dec 25 10:28:25 2004 UTC revision 1.2 by aga, Fri Jan 14 10:34:45 2005 UTC
# Line 14  item::item() Line 14  item::item()
14  {  {
15      iid = 0;      iid = 0;
16      itemTypeID = 0;      itemTypeID = 0;
17      setValue( &subtype, "" );      subtype = 0; setValue( &subtype, "" );
18      contributorUID = 0;      contributorUID = 0;
19      setValue( &title, "" );      title = 0; setValue( &title, "" );
20      setValue( &keywords, "" );      keywords = 0; setValue( &keywords, "" );
21      setValue( &description, "" );      description = 0; setValue( &description, "" );
22      lastUpdateDate = 0;      lastUpdateDate = 0;
23      creationDate = 0;      creationDate = 0;
24  }  }
# Line 31  item::~item() Line 31  item::~item()
31      if( description != 0 ) delete[] description;      if( description != 0 ) delete[] description;
32  }  }
33    
34  int item::getIID() const { return iid; }  int item::getItemID() const { return iid; }
35  int item::getItemTypeID() const { return itemTypeID; }  int item::getItemTypeID() const { return itemTypeID; }
36  const char *item::getSubtype() const { return subtype; }  const char *item::getSubtype() const { return subtype; }
37  int item::getContributorUID() const { return contributorUID; }  int item::getContributorUID() const { return contributorUID; }
# Line 41  const char *item::getDescription() const Line 41  const char *item::getDescription() const
41  time_t item::getLastUpdateDate() const { return lastUpdateDate; }  time_t item::getLastUpdateDate() const { return lastUpdateDate; }
42  time_t item::getCreationDate() const { return creationDate; }  time_t item::getCreationDate() const { return creationDate; }
43    
44  void item::setIID(int iid_){ iid = iid_; }  void item::setItemID(int iid_){ iid = iid_; }
45  void item::setItemTypeID(int itemTypeID_){ itemTypeID = itemTypeID_; }  void item::setItemTypeID(int itemTypeID_){ itemTypeID = itemTypeID_; }
46  void item::setSubtype(const char *subtype_){ setValue( &this -> subtype, subtype_ ); }  void item::setSubtype(const char *subtype_){ setValue( &this -> subtype, subtype_ ); }
47  void item::setContributorUID(int contributorUID_){ contributorUID = contributorUID_; }  void item::setContributorUID(int contributorUID_){ contributorUID = contributorUID_; }
48  void item::setTitle(const char* title_){ setValue( &this -> title, title_ ); }  void item::setTitle(const char* title_){ setValue( &this -> title, title_ ); }
49  void item::setKeywords(const char* keywords_){ setValue( &this -> keywords, keywords_ ); }  void item::setKeywords(const char* keywords_){ setValue( &this -> keywords, keywords_ ); }
50  void item::setDescriptor(const char* description_){ setValue( &this -> description, description_ ); }  void item::setDescription(const char* description_){ setValue( &this -> description, description_ ); }
51  void item::setLastUpdateDate(time_t lastUpdateDate_){ lastUpdateDate = lastUpdateDate_; }  void item::setLastUpdateDate(time_t lastUpdateDate_){ lastUpdateDate = lastUpdateDate_; }
52  void item::setCreationDate(time_t creationDate_){ creationDate = creationDate_; }  void item::setCreationDate(time_t creationDate_){ creationDate = creationDate_; }
53    

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

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