| 10 |
class FamilyIsUsed : public std::binary_function<GEDCOMParser::LineageLinkageGedcom const * const, GEDCOMParser::FamilyRecords_elem_t, bool> { |
class FamilyIsUsed : public std::binary_function<GEDCOMParser::LineageLinkageGedcom const * const, GEDCOMParser::FamilyRecords_elem_t, bool> { |
| 11 |
public: |
public: |
| 12 |
bool operator()(GEDCOMParser::LineageLinkageGedcom const * const lineage, |
bool operator()(GEDCOMParser::LineageLinkageGedcom const * const lineage, |
| 13 |
GEDCOMParser::FamilyRecords_elem_t family) const |
GEDCOMParser::FamilyRecords_elem_t family_elem) const |
| 14 |
{ |
{ |
| 15 |
bool res = lineage->FamilyIsUsed(family.second.getPtr()); |
GEDCOMParser::FamilyRecord const * const family = family_elem.second.getPtr(); |
| 16 |
|
bool res = ((family->getHusb() != "") || |
| 17 |
|
(family->getWife() != "") || |
| 18 |
|
(family->getChilXrefs().size() > 0)); |
| 19 |
return res; |
return res; |
| 20 |
}; |
}; |
| 21 |
}; |
}; |