Browse CVS Repository
Contents of /xoonips/AL/changelog.cc
Parent Directory
| Revision Log
| Revision Graph
Revision 1.1 -
( show annotations)
( download)
( as text)
Wed Jan 19 05:51:21 2005 UTC
(19 years, 2 months ago)
by youi
Branch: MAIN
File MIME type: text/x-c++src
initial version
| 1 |
/* |
| 2 |
* |
| 3 |
* $Revision$ |
| 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 |
const char *changelog::getLog( ) const { return log; } |
| 34 |
|
| 35 |
void changelog::setChangelogID( changelogid_t logid_ ){ logid = logid_; } |
| 36 |
void changelog::setDate( time_t date_ ){ date = date_; } |
| 37 |
void changelog::setLog( const char* log_ ){ setValue( &this -> log, log_ ); } |
|