/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/LineageLinkageGedcom.hh
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/LineageLinkageGedcom.hh

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

revision 1.8 by cpcp, Thu Mar 13 19:59:29 2003 UTC revision 1.9 by cpcp, Wed Jun 25 19:59:18 2003 UTC
# Line 130  namespace GEDCOMParser { Line 130  namespace GEDCOMParser {
130            
131      /// @return true if the individual record has at least one child in the current transmission      /// @return true if the individual record has at least one child in the current transmission
132      bool hasChildren(IndividualRecord const * const) const;      bool hasChildren(IndividualRecord const * const) const;
133        /// @return true if the individual record has at least one spouse in the current transmission
134        bool hasSpouse(IndividualRecord const * const) const;
135        /// @return true if the family record appears at least once in the current transmission
136      bool FamilyIsUsed(FamilyRecord const * const) const;      bool FamilyIsUsed(FamilyRecord const * const) const;
137      void Accept(GEDCOMParser::GEDCOMVisitor *);      void Accept(GEDCOMParser::GEDCOMVisitor *);
138    private:    private:
# Line 144  namespace GEDCOMParser { Line 147  namespace GEDCOMParser {
147      SubmitterRecords_t _submitter_records;      SubmitterRecords_t _submitter_records;
148      GEDCOMParser::IdGenerator * _id_generator;      GEDCOMParser::IdGenerator * _id_generator;
149    };    };
150    class FamilyIsNotUsed : public std::binary_function<GEDCOMParser::LineageLinkageGedcom const * const, std::pair<std::string, SmartPtr<GEDCOMParser::FamilyRecord > >, bool> {  
     bool operator()(GEDCOMParser::LineageLinkageGedcom const * const lineage,  
                     std::pair<std::string, SmartPtr<GEDCOMParser::FamilyRecord> > family) const  
     {  
       bool res = lineage->FamilyIsUsed(family.second.getPtr());  
       return res;  
     };  
   };  
   class hasChildObject : public std::binary_function<GEDCOMParser::LineageLinkageGedcom const * const, std::pair<std::string, SmartPtr<GEDCOMParser::IndividualRecord > >, bool> {  
   public:  
     bool operator()(GEDCOMParser::LineageLinkageGedcom const * const lineage,  
                     std::pair<std::string, SmartPtr<GEDCOMParser::IndividualRecord> > individu) const  
     {  
       bool res = lineage->hasChildren(individu.second.getPtr());  
     return res;  
     };  
   };  
151  };  };
152    
153  #endif  #endif

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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