| 3 |
* |
* |
| 4 |
* $Revision$ |
* $Revision$ |
| 5 |
* $Log$ |
* $Log$ |
| 6 |
|
* Revision 1.3 2004/12/01 10:28:58 youi |
| 7 |
|
* DBカラム名の変更に伴う修正 |
| 8 |
|
* institute -> division |
| 9 |
|
* organizaion -> company_name |
| 10 |
|
* |
| 11 |
* Revision 1.2 2004/11/25 08:57:01 youi |
* Revision 1.2 2004/11/25 08:57:01 youi |
| 12 |
* コンストラクタ内でchar*型のメンバ変数を0で初期化. |
* コンストラクタ内でchar*型のメンバ変数を0で初期化. |
| 13 |
* get系関数にconst修飾. |
* get系関数にconst修飾. |
| 14 |
* |
* |
| 15 |
* Revision 1.1 2004/11/22 08:25:16 youi |
* Revision 1.1 2004/11/22 08:25:16 youi |
| 27 |
{ |
{ |
| 28 |
// charポインタを0で初期値 |
// charポインタを0で初期値 |
| 29 |
address = 0; |
address = 0; |
| 30 |
institute = 0; |
division = 0; |
| 31 |
tel = 0; |
tel = 0; |
| 32 |
organization = 0; |
company_name = 0; |
| 33 |
country = 0; |
country = 0; |
| 34 |
zipcode = 0; |
zipcode = 0; |
| 35 |
fax = 0; |
fax = 0; |
| 56 |
uid = 0; |
uid = 0; |
| 57 |
activate = false; |
activate = false; |
| 58 |
setValue( &address, "" ); |
setValue( &address, "" ); |
| 59 |
setValue( &institute, "" ); |
setValue( &division, "" ); |
| 60 |
setValue( &tel, "" ); |
setValue( &tel, "" ); |
| 61 |
setValue( &organization, "" ); |
setValue( &company_name, "" ); |
| 62 |
setValue( &country, "" ); |
setValue( &country, "" ); |
| 63 |
setValue( &zipcode, "" ); |
setValue( &zipcode, "" ); |
| 64 |
setValue( &fax, "" ); |
setValue( &fax, "" ); |
| 101 |
account::~account() |
account::~account() |
| 102 |
{ |
{ |
| 103 |
if( address != 0 ) delete[] address; |
if( address != 0 ) delete[] address; |
| 104 |
if( institute != 0 ) delete[] institute; |
if( division != 0 ) delete[] division; |
| 105 |
if( tel != 0 ) delete[] tel; |
if( tel != 0 ) delete[] tel; |
| 106 |
if( organization != 0 ) delete[] organization; |
if( company_name != 0 ) delete[] company_name; |
| 107 |
if( country != 0 ) delete[] country; |
if( country != 0 ) delete[] country; |
| 108 |
if( zipcode != 0 ) delete[] zipcode; |
if( zipcode != 0 ) delete[] zipcode; |
| 109 |
if( fax != 0 ) delete[] fax; |
if( fax != 0 ) delete[] fax; |
| 135 |
|
|
| 136 |
const char * account::getAddress() const { return address; } |
const char * account::getAddress() const { return address; } |
| 137 |
|
|
| 138 |
const char * account::getInstitute() const { return institute; } |
const char * account::getDivision() const { return division; } |
| 139 |
|
|
| 140 |
const char * account::getTel() const { return tel; } |
const char * account::getTel() const { return tel; } |
| 141 |
|
|
| 142 |
const char * account::getOrganization() const { return organization; } |
const char * account::getCompanyName() const { return company_name; } |
| 143 |
|
|
| 144 |
const char * account::getCountry() const { return country; } |
const char * account::getCountry() const { return country; } |
| 145 |
|
|
| 225 |
setValue( &this -> address, address ); |
setValue( &this -> address, address ); |
| 226 |
} |
} |
| 227 |
|
|
| 228 |
void account::setInstitute( const char* institute) |
void account::setDivision( const char* division) |
| 229 |
{ |
{ |
| 230 |
setValue( &this -> institute, institute ); |
setValue( &this -> division, division ); |
| 231 |
} |
} |
| 232 |
|
|
| 233 |
void account::setTel( const char* tel) |
void account::setTel( const char* tel) |
| 235 |
setValue( &this -> tel, tel ); |
setValue( &this -> tel, tel ); |
| 236 |
} |
} |
| 237 |
|
|
| 238 |
void account::setOrganization( const char* organization) |
void account::setCompanyName( const char* company_name) |
| 239 |
{ |
{ |
| 240 |
setValue( &this -> organization, organization ); |
setValue( &this -> company_name, company_name ); |
| 241 |
} |
} |
| 242 |
|
|
| 243 |
void account::setCountry( const char* country) |
void account::setCountry( const char* country) |