| 1 |
/* |
/* |
| 2 |
Copyright 2002 Cyril Picard |
Copyright 2002 Cyril Picard |
| 3 |
|
|
| 4 |
This file is part of the GEDCOMParser library |
This file is part of the GEDCOMParser library |
| 5 |
(developed within the Genealogy Free Software Tools project). |
(developed within the Genealogy Free Software Tools project). |
| 6 |
|
|
| 7 |
The GEDCOMParser library is free software; you can redistribute it and/or modify |
The GEDCOMParser library is free software; you can redistribute it and/or modify |
| 8 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
| 9 |
the Free Software Foundation; either version 2 of the License, or |
the Free Software Foundation; either version 2 of the License, or |
| 10 |
(at your option) any later version. |
(at your option) any later version. |
| 11 |
|
|
| 12 |
The GEDCOMParser library is distributed in the hope that it will be useful, |
The GEDCOMParser library is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
GNU General Public License for more details. |
| 16 |
|
|
| 17 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
| 18 |
along with the GEDCOMParser library ; if not, write to the Free Software |
along with the GEDCOMParser library ; if not, write to the Free Software |
| 19 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 |
|
|
| 21 |
*/ |
*/ |
| 22 |
#ifndef _GEDCOMPARSER_INDIVIDUAL_RECORD_HH_ |
#ifndef _GEDCOMPARSER_INDIVIDUAL_RECORD_HH_ |
| 44 |
namespace GEDCOMParser |
namespace GEDCOMParser |
| 45 |
{ |
{ |
| 46 |
class GEDCOMVisitor; |
class GEDCOMVisitor; |
| 47 |
///@name typedefs |
///@name typedefs |
| 48 |
//@{ |
//@{ |
| 49 |
/// @doc handling of many submitter references |
/// @doc handling of many submitter references |
| 50 |
typedef std::vector<std::string> SubmXrefs_t; |
typedef std::vector<std::string> SubmXrefs_t; |
| 51 |
/// @doc handling of many alias references |
/// @doc handling of many alias references |
| 52 |
typedef std::vector<std::string> AliaXrefs_t; |
typedef std::vector<std::string> AliaXrefs_t; |
| 53 |
/// @doc handling of many anci references |
/// @doc handling of many anci references |
| 54 |
typedef std::vector<std::string> AnciXrefs_t; |
typedef std::vector<std::string> AnciXrefs_t; |
| 55 |
/// @doc handling of many desi references |
/// @doc handling of many desi references |
| 56 |
typedef std::vector<std::string> DesiXrefs_t; |
typedef std::vector<std::string> DesiXrefs_t; |
| 57 |
//@} |
//@} |
| 58 |
|
|
| 59 |
/// @memo Implements the GEDCOM 5.5 INDIVIDUAL_RECORD structure |
/// @memo Implements the GEDCOM 5.5 INDIVIDUAL_RECORD structure |
| 60 |
class IndividualRecord : public GEDCOMElement |
class IndividualRecord : public GEDCOMElement |
| 61 |
{ |
{ |
| 62 |
public: |
public: |
| 63 |
|
IndividualRecord(bool get_id = false); |
| 64 |
virtual ~IndividualRecord (void); |
virtual ~IndividualRecord (void); |
| 65 |
|
|
| 66 |
///@name Accessors (set) |
///@name Accessors (set) |
| 67 |
//@{ |
//@{ |
| 68 |
void setId (std::string const &); |
void setId (std::string const &); |
| 165 |
/// |
/// |
| 166 |
SmartPtr<ChangeDate> const & getChangeDate(void) const ; |
SmartPtr<ChangeDate> const & getChangeDate(void) const ; |
| 167 |
/// |
/// |
| 168 |
//@} |
//@} |
| 169 |
|
|
| 170 |
/// operator == used to find an individual by its id |
/// operator == used to find an individual by its id |
| 171 |
friend bool operator==(IndividualRecord const &ind, std::string const &id) |
friend bool operator==(IndividualRecord const &ind, std::string const &id) |