29 |
#include "GEDCOMParser/GEDCOMFactoryAccessor.hh" |
#include "GEDCOMParser/GEDCOMFactoryAccessor.hh" |
30 |
#include "GEDCOMParser/ParseErrorManagement/ParseErrorManager.hh" |
#include "GEDCOMParser/ParseErrorManagement/ParseErrorManager.hh" |
31 |
#include "GEDCOMParser/Predicates/HasChild.hh" |
#include "GEDCOMParser/Predicates/HasChild.hh" |
32 |
|
#include "GEDCOMParser/Predicates/IsMale.hh" |
33 |
|
#include "GEDCOMParser/Predicates/HasSpouse.hh" |
34 |
|
#include "GEDCOMParser/Predicates/FamilyIsNotUsed.hh" |
35 |
|
#include "GEDCOMParser/Predicates/NameEqualsTo.hh" |
36 |
|
|
37 |
#include <string> |
#include <string> |
38 |
#include <map> |
#include <map> |
154 |
{ |
{ |
155 |
GEDCOMParser::IndividualRecords_t individus = lineage->getIndividualRecords(); |
GEDCOMParser::IndividualRecords_t individus = lineage->getIndividualRecords(); |
156 |
std::cout << _("Individuals records : ") << individus.size() << std::endl; |
std::cout << _("Individuals records : ") << individus.size() << std::endl; |
|
std::cout << _("Individuals records without children : "); |
|
|
int nb_individus_without_child = std::count_if(individus.begin(), individus.end(), std::compose1(std::logical_not<bool>(), std::bind1st(GEDCOMParser::HasChild(), lineage))); |
|
|
std::cout << nb_individus_without_child << std::endl; |
|
|
std::cout << _("Family records : ") << lineage->getFamilyRecords().size() << std::endl; |
|
157 |
} |
} |
158 |
else |
else |
159 |
{ |
{ |