/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/Predicates/IsMale.hh
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/Predicates/IsMale.hh

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

revision 1.1 by cpcp, Wed Jun 25 19:59:18 2003 UTC revision 1.2 by cpcp, Sun Jul 27 19:35:22 2003 UTC
# Line 2  Line 2 
2  #define _GEDCOMPARSER_PREDICATES_ISMALE_HH_  #define _GEDCOMPARSER_PREDICATES_ISMALE_HH_
3    
4  #include "GEDCOMParser/IndividualRecord.hh"  #include "GEDCOMParser/IndividualRecord.hh"
5  #include <functional>  #include "GEDCOMParser/Predicates/PredicateIndividualRecords.hh"
6    
7  namespace GEDCOMParser {  namespace GEDCOMParser {
8    class IsMale : public std::unary_function<GEDCOMParser::IndividualRecords_elem_t, bool> {    namespace Predicates {
9      bool operator()(GEDCOMParser::IndividualRecords_elem_t individu) const      class IsMale : public GEDCOMParser::Predicates::PredicateIndividualRecords
10      {      {
11        bool res = false;      public:
12        res = (individu.second->getSex() == "M");        bool operator()(GEDCOMParser::IndividualRecords_elem_t const & individu) const
13        return res;        {
14            bool res = false;
15            res = (individu.second->getSex() == "M");
16            return res;
17          };
18      };      };
19    };    };
20  };  };

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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