/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/Predicates/FamilyIsUsed.hh
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/Predicates/FamilyIsUsed.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by cpcp, Sun Jul 27 19:52:55 2003 UTC revision 1.2 by cpcp, Thu Oct 30 20:05:44 2003 UTC
# Line 10  namespace GEDCOMParser { Line 10  namespace GEDCOMParser {
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      };      };

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26