| 28 |
#include "GEDCOMParser/GEDCOMFactory.hh" |
#include "GEDCOMParser/GEDCOMFactory.hh" |
| 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" |
| 32 |
|
|
| 33 |
|
|
| 34 |
#include <string> |
#include <string> |
| 35 |
#include <map> |
#include <map> |
| 152 |
GEDCOMParser::IndividualRecords_t individus = lineage->getIndividualRecords(); |
GEDCOMParser::IndividualRecords_t individus = lineage->getIndividualRecords(); |
| 153 |
std::cout << _("Individuals records : ") << individus.size() << std::endl; |
std::cout << _("Individuals records : ") << individus.size() << std::endl; |
| 154 |
std::cout << _("Individuals records without children : "); |
std::cout << _("Individuals records without children : "); |
| 155 |
int nb_individus_without_child = std::count_if(individus.begin(), individus.end(), std::compose1(std::logical_not<bool>(), std::bind1st(GEDCOMParser::hasChildObject(), lineage))); |
int nb_individus_without_child = std::count_if(individus.begin(), individus.end(), std::compose1(std::logical_not<bool>(), std::bind1st(GEDCOMParser::HasChild(), lineage))); |
| 156 |
std::cout << nb_individus_without_child << std::endl; |
std::cout << nb_individus_without_child << std::endl; |
| 157 |
std::cout << _("Family records : ") << lineage->getFamilyRecords().size() << std::endl; |
std::cout << _("Family records : ") << lineage->getFamilyRecords().size() << std::endl; |
| 158 |
} |
} |