| 23 |
#define _GEDCOMPARSER_CHANGE_DATE_HH_ |
#define _GEDCOMPARSER_CHANGE_DATE_HH_ |
| 24 |
|
|
| 25 |
#include <string> |
#include <string> |
| 26 |
#include "GEDCOMParser/NoteStructure.hh" |
#include "GEDCOMParser/AttachmentManager.hh" |
| 27 |
#include "GEDCOMParser/DateManagement/DateValue.hh" |
#include "GEDCOMParser/DateManagement/DateValue.hh" |
| 28 |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
| 29 |
|
|
| 32 |
{ |
{ |
| 33 |
class GEDCOMVisitor; |
class GEDCOMVisitor; |
| 34 |
/// @memo Implements the GEDCOM 5.5 CHANGE_DATE structure |
/// @memo Implements the GEDCOM 5.5 CHANGE_DATE structure |
| 35 |
class ChangeDate : public GEDCOMElement |
class ChangeDate : public GEDCOMElement, |
| 36 |
|
public AttachmentManager |
| 37 |
{ |
{ |
| 38 |
protected: |
protected: |
| 39 |
GEDCOMParser::DateManagement::DateValue * _date; |
GEDCOMParser::DateManagement::DateValue * _date; |
| 40 |
std::string _time; |
std::string _time; |
|
NoteStructures_t _notes; |
|
| 41 |
public: |
public: |
| 42 |
ChangeDate(void) : |
ChangeDate(void) : |
| 43 |
_date(0), |
_date(0), |
| 44 |
_time(), |
_time() |
|
_notes() |
|
| 45 |
{ |
{ |
| 46 |
}; |
}; |
| 47 |
ChangeDate(ChangeDate const &c) : |
ChangeDate(ChangeDate const &c) : |
| 48 |
_date(0), |
_date(0), |
| 49 |
_time(c._time), |
_time(c._time) |
|
_notes(c._notes) |
|
| 50 |
{ |
{ |
| 51 |
if (c._date != 0) |
if (c._date != 0) |
| 52 |
{ |
{ |
| 64 |
void setDate (std::string const &); |
void setDate (std::string const &); |
| 65 |
/// |
/// |
| 66 |
void setTime (std::string const &); |
void setTime (std::string const &); |
|
/// |
|
|
GEDCOMParser::NoteStructure * addNoteStructure (NoteStructure * const data = 0); |
|
| 67 |
//@} |
//@} |
| 68 |
|
|
| 69 |
///@name Accessors (get) |
///@name Accessors (get) |
| 73 |
GEDCOMParser::DateManagement::DateValue const * const getDateObject(void) const; |
GEDCOMParser::DateManagement::DateValue const * const getDateObject(void) const; |
| 74 |
/// |
/// |
| 75 |
virtual std::string const &getTime(void) const; |
virtual std::string const &getTime(void) const; |
|
/// |
|
|
NoteStructures_t const &getNoteStructures(void) const; |
|
| 76 |
//@} |
//@} |
| 77 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
| 78 |
}; |
}; |