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.4 - (show annotations) (download) (as text)
Tue Mar 15 04:49:40 2005 UTC (18 years, 11 months ago) by tani
Branch: MAIN
CVS Tags: AL_PORTING, MergePnt_20051116, REL20051226, XOONIPS_RC1, REL20060323, tag20060615, tag20070307current, tag20061115, MergePnt_20051220, tag20061130, merge_to_20060605, tag20070307, REL20060213, RELENG_2_0_0a_RELEASE, RELEASE_1_0_0, RELEASE_1_0_1, tag20060622, merge_to_20060411, HEAD
Branch point for: XOONIPS_STABLE_32, XOONIPS_STABLE, XOONIPS_STABLE_3, XOONIPS_STABLE_2
Changes since 1.3: +21 -1 lines
File MIME type: text/x-c++src
ライセンス文を追加.

1 /*
2 *
3 * --------------------------------------------------------------------------
4 * XooNiPs Xoops modules for Neuroinformatics Platforms
5 * Copyright (C) 2005 RIKEN, Japan. All rights reserved.
6 * http://sourceforge.jp/projects/xoonips/
7 * --------------------------------------------------------------------------
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 * --------------------------------------------------------------------------
22 *
23 * $Revision: 1.3 $
24 *
25 */
26
27 #include <stdlib.h>
28 #include <time.h>
29
30 #include "common.h"
31 #include "changelog.h"
32
33 changelog::changelog()
34 {
35 logid = 0;
36 date = 0;
37 log = 0; setValue( &log, "" );
38 }
39
40 changelog::changelog( changelogid_t logid_, time_t date_, const char* log_ )
41 {
42 logid = logid_;
43 date = date_;
44 log = 0; setValue( &log, log_ );
45 }
46
47 changelog::~changelog()
48 {
49 if( log != 0 ) delete[] log;
50 }
51
52 changelogid_t changelog::getChangelogID( ) const { return logid; }
53 time_t changelog::getDate( ) const { return date; }
54 itemid_t changelog::getItemID( ) const { return item_id; }
55 const char *changelog::getLog( ) const { return log; }
56
57 void changelog::setChangelogID( changelogid_t logid_ ){ logid = logid_; }
58 void changelog::setDate( time_t date_ ){ date = date_; }
59 void changelog::setItemID( itemid_t item_id_ ){ item_id = item_id_; }
60 void changelog::setLog( const char* log_ ){ setValue( &this -> log, log_ ); }

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