| 25 |
#include <string> |
#include <string> |
| 26 |
#include <vector> |
#include <vector> |
| 27 |
#include "patterns/SmartPtr.hh" |
#include "patterns/SmartPtr.hh" |
| 28 |
#include "GEDCOMParser/NoteStructure.hh" |
#include "GEDCOMParser/AttachmentManager.hh" |
| 29 |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
| 30 |
|
|
| 31 |
/// Package GEDCOMParser |
/// Package GEDCOMParser |
| 38 |
typedef std::vector<std::string> Pedis_t; |
typedef std::vector<std::string> Pedis_t; |
| 39 |
//@} |
//@} |
| 40 |
/// @memo Implements the GEDCOM 5.5 CHILD_TO_FAMILY_LINK structure |
/// @memo Implements the GEDCOM 5.5 CHILD_TO_FAMILY_LINK structure |
| 41 |
class ChildToFamilyLink : public GEDCOMElement |
class ChildToFamilyLink : public GEDCOMElement, |
| 42 |
|
public AttachmentManager |
| 43 |
{ |
{ |
| 44 |
public: |
public: |
| 45 |
virtual ~ChildToFamilyLink(void) |
virtual ~ChildToFamilyLink(void) |
| 51 |
void setFamcXref (std::string const &); |
void setFamcXref (std::string const &); |
| 52 |
/// |
/// |
| 53 |
void addPedi (std::string const &); |
void addPedi (std::string const &); |
|
/// |
|
|
GEDCOMParser::NoteStructure * addNoteStructure (NoteStructure * const data = 0); |
|
| 54 |
//@} |
//@} |
| 55 |
///@name Accessors (get) |
///@name Accessors (get) |
| 56 |
//@{ |
//@{ |
| 59 |
/// |
/// |
| 60 |
virtual std::string const &getFamcXref(void) const; |
virtual std::string const &getFamcXref(void) const; |
| 61 |
/// |
/// |
|
NoteStructures_t const &getNoteStructures(void) const; |
|
|
/// |
|
| 62 |
class IsEqualByFamcXref { |
class IsEqualByFamcXref { |
| 63 |
public: |
public: |
| 64 |
IsEqualByFamcXref(std::string const &xref) : _xref(xref) |
IsEqualByFamcXref(std::string const &xref) : _xref(xref) |
| 75 |
protected: |
protected: |
| 76 |
std::string _famc_xref; |
std::string _famc_xref; |
| 77 |
Pedis_t _pedis; |
Pedis_t _pedis; |
|
NoteStructures_t _notes; |
|
| 78 |
}; |
}; |
| 79 |
///@name typedefs |
///@name typedefs |
| 80 |
//@{ |
//@{ |