34 |
#include "GEDCOMParser/Predicates/HasChild.hh" |
#include "GEDCOMParser/Predicates/HasChild.hh" |
35 |
#include "GEDCOMParser/Predicates/IsMale.hh" |
#include "GEDCOMParser/Predicates/IsMale.hh" |
36 |
#include "GEDCOMParser/Predicates/HasSpouse.hh" |
#include "GEDCOMParser/Predicates/HasSpouse.hh" |
|
#include "GEDCOMParser/Predicates/FamilyIsNotUsed.hh" |
|
37 |
#include "GEDCOMParser/Predicates/NameEqualsTo.hh" |
#include "GEDCOMParser/Predicates/NameEqualsTo.hh" |
38 |
|
|
39 |
#include <string> |
#include <string> |
151 |
std::cout << _("Individuals records : ") << individus.size() << std::endl; |
std::cout << _("Individuals records : ") << individus.size() << std::endl; |
152 |
GEDCOMParser::Predicates::PredicateIndividualRecords * predicate; |
GEDCOMParser::Predicates::PredicateIndividualRecords * predicate; |
153 |
|
|
154 |
predicate = GEDCOMParser::Predicates::get_generic_predicate_individual_records(std::compose1(std::logical_not<bool>(), std::bind1st(GEDCOMParser::Predicates::HasChild(), lineage))); |
predicate = GEDCOMParser::Predicates::getGenericPredicateIndividualRecords(std::compose1(std::logical_not<bool>(), std::bind1st(GEDCOMParser::Predicates::HasChild(), lineage))); |
155 |
countrecords(individus, _("Individuals records without children : "), predicate); |
countrecords(individus, _("Individuals records without children : "), predicate); |
156 |
delete predicate; predicate = 0; |
delete predicate; predicate = 0; |
157 |
|
|
158 |
predicate = GEDCOMParser::Predicates::get_generic_predicate_individual_records(std::compose1(std::logical_not<bool>(), std::bind1st(GEDCOMParser::Predicates::HasChild(), lineage))); |
predicate = GEDCOMParser::Predicates::getGenericPredicateIndividualRecords(std::compose1(std::logical_not<bool>(), std::bind1st(GEDCOMParser::Predicates::HasChild(), lineage))); |
159 |
countrecords(individus, _("Individuals records female : "), predicate); |
countrecords(individus, _("Individuals records female : "), predicate); |
160 |
delete predicate; predicate = 0; |
delete predicate; predicate = 0; |
161 |
|
|
163 |
countrecords(individus, _("Individuals records male : "), predicate); |
countrecords(individus, _("Individuals records male : "), predicate); |
164 |
delete predicate; predicate = 0; |
delete predicate; predicate = 0; |
165 |
|
|
166 |
predicate = GEDCOMParser::Predicates::get_generic_predicate_individual_records(std::compose1(std::logical_not<bool>(), std::bind1st(GEDCOMParser::Predicates::HasSpouse(), lineage))); |
predicate = GEDCOMParser::Predicates::getGenericPredicateIndividualRecords(std::compose1(std::logical_not<bool>(), std::bind1st(GEDCOMParser::Predicates::HasSpouse(), lineage))); |
167 |
countrecords(individus, _("Individuals records bachelor : "), predicate); |
countrecords(individus, _("Individuals records bachelor : "), predicate); |
168 |
delete predicate; predicate = 0; |
delete predicate; predicate = 0; |
169 |
|
|
170 |
GEDCOMParser::FamilyRecords_t families = lineage->getFamilyRecords(); |
GEDCOMParser::FamilyRecords_t families = lineage->getFamilyRecords(); |
171 |
std::cout << _("Family records : ") << families.size() << std::endl; |
std::cout << _("Family records : ") << families.size() << std::endl; |
|
std::cout << _("Family records not used : "); |
|
|
int nb_families_not_used = std::count_if(families.begin(), families.end(), std::bind1st(GEDCOMParser::Predicates::FamilyIsNotUsed(), lineage)); |
|
|
std::cout << nb_families_not_used << std::endl; |
|
172 |
} |
} |
173 |
else |
else |
174 |
{ |
{ |