Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips/AL/changelog.cc

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


Revision 1.3 - (hide annotations) (download) (as text)
Fri Mar 11 20:00:28 2005 UTC (19 years, 1 month ago) by orrisroot
Branch: MAIN
Changes since 1.2: +2 -1 lines
File MIME type: text/x-c++src
- Autotoolized XooNiPs Abstract Layer projects.
- changelog.cc commonal.cc index.cc item.cc :
    included <time.h> header file for undefined data type 'time_t' error.

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

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