Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/changelog.cc

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Jan 22 09:25:14 2005 UTC (19 years, 2 months ago) by youi
Branch: MAIN
CVS Tags: mv_to_sourceforge_20050217, demo20050128
Changes since 1.1: +3 -1 lines
File MIME type: text/x-c++src
アイテムIDを追加した.

1 /*
2 *
3 * $Revision: 1.1 $
4 *
5 */
6
7 #include <stdlib.h>
8
9 #include "common.h"
10 #include "changelog.h"
11
12 changelog::changelog()
13 {
14 logid = 0;
15 date = 0;
16 log = 0; setValue( &log, "" );
17 }
18
19 changelog::changelog( changelogid_t logid_, time_t date_, const char* log_ )
20 {
21 logid = logid_;
22 date = date_;
23 log = 0; setValue( &log, log_ );
24 }
25
26 changelog::~changelog()
27 {
28 if( log != 0 ) delete[] log;
29 }
30
31 changelogid_t changelog::getChangelogID( ) const { return logid; }
32 time_t changelog::getDate( ) const { return date; }
33 itemid_t changelog::getItemID( ) const { return item_id; }
34 const char *changelog::getLog( ) const { return log; }
35
36 void changelog::setChangelogID( changelogid_t logid_ ){ logid = logid_; }
37 void changelog::setDate( time_t date_ ){ date = date_; }
38 void changelog::setItemID( itemid_t item_id_ ){ item_id = item_id_; }
39 void changelog::setLog( const char* log_ ){ setValue( &this -> log, log_ ); }

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