/[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.4 by cpcp, Mon Feb 17 21:39:13 2003 UTC revision 1.5 by cpcp, Wed Jun 25 19:59:18 2003 UTC
# Line 28  Line 28 
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>
# Line 150  int main(int argc, char **argv) Line 152  int main(int argc, char **argv)
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              }              }

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

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