| 118 |
return _child_to_family_links.back().getPtr(); |
return _child_to_family_links.back().getPtr(); |
| 119 |
} |
} |
| 120 |
|
|
| 121 |
|
void GEDCOMParser::IndividualRecord::RemoveChildToFamilyLink(SmartPtr < GEDCOMParser::ChildToFamilyLink > const &data) |
| 122 |
|
{ |
| 123 |
|
GEDCOMParser::ChildToFamilyLinks_t::iterator iter = find(_child_to_family_links.begin(), _child_to_family_links.end(), data); |
| 124 |
|
if (iter != _child_to_family_links.end()) |
| 125 |
|
{ |
| 126 |
|
_child_to_family_links.erase(iter); |
| 127 |
|
} |
| 128 |
|
return; |
| 129 |
|
} |
| 130 |
|
|
| 131 |
GEDCOMParser::SpouseToFamilyLink * GEDCOMParser::IndividualRecord::addSpouseToFamilyLink(GEDCOMParser::SpouseToFamilyLink * const data = 0) |
GEDCOMParser::SpouseToFamilyLink * GEDCOMParser::IndividualRecord::addSpouseToFamilyLink(GEDCOMParser::SpouseToFamilyLink * const data = 0) |
| 132 |
{ |
{ |
| 133 |
GEDCOMParser::SpouseToFamilyLink * tmp_data = data; |
GEDCOMParser::SpouseToFamilyLink * tmp_data = data; |
| 140 |
return _spouse_to_family_links.back().getPtr(); |
return _spouse_to_family_links.back().getPtr(); |
| 141 |
} |
} |
| 142 |
|
|
| 143 |
|
void GEDCOMParser::IndividualRecord::RemoveSpouseToFamilyLink(SmartPtr < GEDCOMParser::SpouseToFamilyLink > const &data) |
| 144 |
|
{ |
| 145 |
|
GEDCOMParser::SpouseToFamilyLinks_t::iterator iter = find(_spouse_to_family_links.begin(), _spouse_to_family_links.end(), data); |
| 146 |
|
if (iter != _spouse_to_family_links.end()) |
| 147 |
|
{ |
| 148 |
|
_spouse_to_family_links.erase(iter); |
| 149 |
|
} |
| 150 |
|
return; |
| 151 |
|
} |
| 152 |
|
|
| 153 |
void GEDCOMParser::IndividualRecord::addSubmXref(std::string const & value) |
void GEDCOMParser::IndividualRecord::addSubmXref(std::string const & value) |
| 154 |
{ |
{ |
| 155 |
_subm_xrefs.push_back(std::string(value)); |
_subm_xrefs.push_back(std::string(value)); |
| 269 |
{ |
{ |
| 270 |
} |
} |
| 271 |
|
|
|
void GEDCOMParser::IndividualRecord::RemoveFamilyLink(GEDCOMParser::SpouseToFamilyLink * family_link) |
|
|
{ |
|
|
GEDCOMParser::SpouseToFamilyLinks_t::iterator iter_to_delete = find_if(_spouse_to_family_links.begin(), _spouse_to_family_links.end(), GEDCOMParser::SpouseToFamilyLink::IsEqualByFamsXref(family_link->getFamsXref())); |
|
|
if (iter_to_delete != _spouse_to_family_links.end()) |
|
|
{ |
|
|
_spouse_to_family_links.erase(iter_to_delete); |
|
|
} |
|
|
return; |
|
|
} |
|
|
|
|
|
void GEDCOMParser::IndividualRecord::RemoveFamilyLink(GEDCOMParser::ChildToFamilyLink * family_link) |
|
|
{ |
|
|
GEDCOMParser::ChildToFamilyLinks_t::iterator iter_to_delete = find_if(_child_to_family_links.begin(), _child_to_family_links.end(), GEDCOMParser::ChildToFamilyLink::IsEqualByFamcXref(family_link->getFamcXref())); |
|
|
if (iter_to_delete != _child_to_family_links.end()) |
|
|
{ |
|
|
_child_to_family_links.erase(iter_to_delete); |
|
|
} |
|
|
return; |
|
|
} |
|
|
|
|
| 272 |
GEDCOMParser::AliaXrefs_t const &GEDCOMParser::IndividualRecord::getAliaXrefs(void) const |
GEDCOMParser::AliaXrefs_t const &GEDCOMParser::IndividualRecord::getAliaXrefs(void) const |
| 273 |
{ |
{ |
| 274 |
return _alia_xrefs; |
return _alia_xrefs; |
| 328 |
return _individual_attributes; |
return _individual_attributes; |
| 329 |
} |
} |
| 330 |
|
|
|
GEDCOMParser::IndividualAttribute * const GEDCOMParser::IndividualRecord::getOccupation(void) const |
|
|
{ |
|
|
GEDCOMParser::IndividualAttribute * res = 0; |
|
|
GEDCOMParser::IndividualAttributes_t attributes = getIndividualAttributes(); |
|
|
GEDCOMParser::IndividualAttributes_t::const_iterator iter = |
|
|
std::find(attributes.begin(), |
|
|
attributes.end(), |
|
|
GEDCOMParser::IndividualAttribute::e_Occu); |
|
|
if (iter != attributes.end()) |
|
|
{ |
|
|
res = (*iter).getPtr(); |
|
|
} |
|
|
return res; |
|
|
} |
|
|
|
|
| 331 |
GEDCOMParser::LdsIndividualOrdinances_t const &GEDCOMParser::IndividualRecord::getLdsIndividualOrdinances(void) const |
GEDCOMParser::LdsIndividualOrdinances_t const &GEDCOMParser::IndividualRecord::getLdsIndividualOrdinances(void) const |
| 332 |
{ |
{ |
| 333 |
return _lds_individual_ordinances; |
return _lds_individual_ordinances; |