| 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, "" ); |
| 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; |
| 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; } |
| 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_ ); } |