Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/account.cc

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

revision 1.2 by youi, Thu Nov 25 08:57:01 2004 UTC revision 1.3 by youi, Wed Dec 1 10:28:58 2004 UTC
# Line 3  Line 3 
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
# Line 22  account::account() Line 27  account::account()
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;
# Line 51  account::account() Line 56  account::account()
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, "" );
# Line 96  account::account() Line 101  account::account()
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;
# Line 130  bool account::getActivate() const { retu Line 135  bool account::getActivate() const { retu
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    
# Line 220  void account::setAddress( const char* ad Line 225  void account::setAddress( const char* ad
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)
# Line 230  void account::setTel( const char* tel) Line 235  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)

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