/[ghosts]/ghosts/gedcomparser/src/gedcomcheck.cpp
ViewVC logotype

Diff of /ghosts/gedcomparser/src/gedcomcheck.cpp

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

revision 1.5 by cpcp, Wed Jun 25 19:59:18 2003 UTC revision 1.6 by cpcp, Sun Jul 27 19:35:22 2003 UTC
# Line 29  Line 29 
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>
# Line 151  int main(int argc, char **argv) Line 154  int main(int argc, char **argv)
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              {              {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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