| 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 |
/// |
/// |
| 33 |
{ |
{ |
| 34 |
class GEDCOMVisitor; |
class GEDCOMVisitor; |
| 35 |
/// @memo Implements the GEDCOM 5.5 SPOUSE_TO_FAMILY_LINK structure |
/// @memo Implements the GEDCOM 5.5 SPOUSE_TO_FAMILY_LINK structure |
| 36 |
class SpouseToFamilyLink : public GEDCOMElement |
class SpouseToFamilyLink : public GEDCOMElement, |
| 37 |
|
public AttachmentManager |
| 38 |
{ |
{ |
| 39 |
public: |
public: |
| 40 |
virtual ~SpouseToFamilyLink(void) {}; |
virtual ~SpouseToFamilyLink(void) {}; |
| 42 |
//@{ |
//@{ |
| 43 |
/// |
/// |
| 44 |
void setFamsXref (std::string const &); |
void setFamsXref (std::string const &); |
|
/// |
|
|
GEDCOMParser::NoteStructure * addNoteStructure (NoteStructure * const data = 0); |
|
| 45 |
//@} |
//@} |
| 46 |
///@name Accessors (get) |
///@name Accessors (get) |
| 47 |
//@{ |
//@{ |
| 50 |
/// |
/// |
| 51 |
virtual std::string const &getFamsXref(void) const; |
virtual std::string const &getFamsXref(void) const; |
| 52 |
/// |
/// |
|
NoteStructures_t const &getNoteStructures(void) const; |
|
|
/// |
|
| 53 |
class IsEqualByFamsXref { |
class IsEqualByFamsXref { |
| 54 |
public: |
public: |
| 55 |
IsEqualByFamsXref(std::string const &xref) : _xref(xref) |
IsEqualByFamsXref(std::string const &xref) : _xref(xref) |
| 64 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
| 65 |
protected: |
protected: |
| 66 |
std::string _fams_xref; |
std::string _fams_xref; |
|
NoteStructures_t _notes; |
|
| 67 |
}; |
}; |
| 68 |
///@name typedefs |
///@name typedefs |
| 69 |
//@{ |
//@{ |