| 1 |
/** |
/* |
| 2 |
Copyright 2002 Cyril Picard |
Copyright 2002 Cyril Picard |
| 3 |
|
|
| 4 |
This file is part of the GEDCOMParser library |
This file is part of the GEDCOMParser library |
| 18 |
along with the GEDCOMParser library ; if not, write to the Free Software |
along with the GEDCOMParser library ; if not, write to the Free Software |
| 19 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 |
|
|
| 21 |
**/ |
*/ |
| 22 |
|
|
| 23 |
#ifndef _GEDCOMPARSER_DATEMANAGEMENT_PERIOD_HH_ |
#ifndef _GEDCOMPARSER_DATEMANAGEMENT_PERIOD_HH_ |
| 24 |
#define _GEDCOMPARSER_DATEMANAGEMENT_PERIOD_HH_ |
#define _GEDCOMPARSER_DATEMANAGEMENT_PERIOD_HH_ |
| 25 |
|
|
| 26 |
#include "GEDCOMParser/DateManagement/Date.hh" |
#include "GEDCOMParser/DateManagement/Date.hh" |
| 27 |
|
/// |
| 28 |
namespace GEDCOMParser |
namespace GEDCOMParser |
| 29 |
{ |
{ |
| 30 |
|
/// |
| 31 |
namespace DateManagement |
namespace DateManagement |
| 32 |
{ |
{ |
|
class Period |
|
| 33 |
/** @memo Implements the GEDCOM 5.5 DATE_PERIOD primitive element |
/** @memo Implements the GEDCOM 5.5 DATE_PERIOD primitive element |
| 34 |
*/ |
**/ |
| 35 |
|
class Period |
| 36 |
{ |
{ |
| 37 |
public: |
public: |
| 38 |
Period(void) : |
Period(void) : |
| 58 |
delete _date_to; |
delete _date_to; |
| 59 |
return; |
return; |
| 60 |
}; |
}; |
| 61 |
|
///@name Accessors (set) |
| 62 |
|
//@{ |
| 63 |
|
/// |
| 64 |
void setDateFrom(GEDCOMParser::DateManagement::Date const &from); |
void setDateFrom(GEDCOMParser::DateManagement::Date const &from); |
| 65 |
|
/// |
| 66 |
void setDateTo(GEDCOMParser::DateManagement::Date const &to); |
void setDateTo(GEDCOMParser::DateManagement::Date const &to); |
| 67 |
|
//@} |
| 68 |
|
|
| 69 |
|
///@name Accessors (get) |
| 70 |
|
//@{ |
| 71 |
|
/// |
| 72 |
std::string const getDisplayValue(void) const; |
std::string const getDisplayValue(void) const; |
| 73 |
|
//@} |
| 74 |
private: |
private: |
| 75 |
GEDCOMParser::DateManagement::Date * _date_from; |
GEDCOMParser::DateManagement::Date * _date_from; |
| 76 |
GEDCOMParser::DateManagement::Date * _date_to; |
GEDCOMParser::DateManagement::Date * _date_to; |