/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/PersonalName.cpp
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/PersonalName.cpp

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

revision 1.7 by cpcp, Sun Feb 23 21:34:44 2003 UTC revision 1.8 by cpcp, Sun Nov 16 15:22:13 2003 UTC
# Line 75  void GEDCOMParser::PersonalName::setNsfx Line 75  void GEDCOMParser::PersonalName::setNsfx
75    return;    return;
76  }  }
77    
 GEDCOMParser::SourceCitation * GEDCOMParser::PersonalName::addSourceCitation(GEDCOMParser::SourceCitation * const data = 0)  
 {  
   GEDCOMParser::SourceCitation  * tmp_data = data;  
   if (data == 0)  
     {  
       GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();  
       tmp_data = factory->createSourceCitation();  
     }  
   _citations.push_back(SmartPtr<SourceCitation>(tmp_data));  
   return _citations.back().getPtr();  
 }  
   
 GEDCOMParser::NoteStructure * GEDCOMParser::PersonalName::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0)  
 {  
     GEDCOMParser::NoteStructure  * tmp_data = data;  
   if (data == 0)  
     {  
       GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();  
       tmp_data = factory->createNoteStructure();  
     }  
   _notes.push_back(SmartPtr<NoteStructure>(tmp_data));  
   return _notes.back().getPtr();  
 }  
   
 GEDCOMParser::SourceCitations_t const & GEDCOMParser::PersonalName::getSourceCitations(void) const  
 {  
   return _citations;  
 }  
   
   
 GEDCOMParser::NoteStructures_t const & GEDCOMParser::PersonalName::getNoteStructures(void) const  
 {  
   return _notes;  
 }  
   
78  std::string const &GEDCOMParser::PersonalName::getName(void) const  std::string const &GEDCOMParser::PersonalName::getName(void) const
79  {  {
80    return _name;    return _name;

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

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