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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/SourceRecord.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 71  void GEDCOMParser::SourceRecord::Data::s Line 71  void GEDCOMParser::SourceRecord::Data::s
71    return;    return;
72  }  }
73    
 GEDCOMParser::NoteStructure * GEDCOMParser::SourceRecord::Data::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::NoteStructures_t const &GEDCOMParser::SourceRecord::Data::getNoteStructures(void) const  
 {  
   return _notes;  
 }  
   
74  GEDCOMParser::SourceRecord::SourceRecord(std::string const &id = "")  GEDCOMParser::SourceRecord::SourceRecord(std::string const &id = "")
75  {  {
76    if (id != "")    if (id != "")
# Line 183  GEDCOMParser::SourceRepositoryCitation * Line 166  GEDCOMParser::SourceRepositoryCitation *
166    return _src_rep_citation.getPtr();        return _src_rep_citation.getPtr();    
167  }  }
168    
 GEDCOMParser::MultimediaLink * GEDCOMParser::SourceRecord::addMultimediaLink(GEDCOMParser::MultimediaLink * const data = 0)  
 {  
   GEDCOMParser::MultimediaLink  * tmp_data = data;  
   if (data == 0)  
     {  
       GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();  
       tmp_data = factory->createMultimediaLink();  
     }  
   _mm_links.push_back(SmartPtr<MultimediaLink>(tmp_data));  
   return _mm_links.back().getPtr();  
 }  
   
 GEDCOMParser::NoteStructure * GEDCOMParser::SourceRecord::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::UserReference * GEDCOMParser::SourceRecord::addUserReference(GEDCOMParser::UserReference * const data = 0)  
 {  
   GEDCOMParser::UserReference  * tmp_data = data;  
   if (data == 0)  
     {  
       GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();  
       tmp_data = factory->createUserReference();  
     }  
   _user_references.push_back(SmartPtr<UserReference>(tmp_data));  
   return _user_references.back().getPtr();  
 }  
   
169  void GEDCOMParser::SourceRecord::setRin(std::string const &value)  void GEDCOMParser::SourceRecord::setRin(std::string const &value)
170  {  {
171    _rin = value;    _rin = value;
172    return;    return;
173  }  }
174    
 GEDCOMParser::ChangeDate * GEDCOMParser::SourceRecord::setChangeDate(GEDCOMParser::ChangeDate * const data = 0)  
 {  
   GEDCOMParser::ChangeDate  * tmp_data = data;  
   if (data == 0)  
     {  
       GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();  
       tmp_data = factory->createChangeDate();  
     }  
   _change_date = SmartPtr<ChangeDate>(tmp_data);  
   return _change_date.getPtr();    
 }  
   
175  GEDCOMParser::SourceRecord::~SourceRecord(void)  GEDCOMParser::SourceRecord::~SourceRecord(void)
176  {  {
177  }  }
# Line 251  SmartPtr<GEDCOMParser::SourceRepositoryC Line 186  SmartPtr<GEDCOMParser::SourceRepositoryC
186    return _src_rep_citation;    return _src_rep_citation;
187  }  }
188    
 GEDCOMParser::MultimediaLinks_t const &GEDCOMParser::SourceRecord::getMultimediaLinks(void) const  
 {  
   return _mm_links;  
 }  
   
 GEDCOMParser::NoteStructures_t const &GEDCOMParser::SourceRecord::getNoteStructures(void) const  
 {  
   return _notes;  
 }  
   
 GEDCOMParser::UserReferences_t const &GEDCOMParser::SourceRecord::getUserReferences(void) const  
 {  
   return _user_references;  
 }  
   
 SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::SourceRecord::getChangeDate(void) const  
 {  
   return _change_date;  
 }  
   
189  std::string const & GEDCOMParser::SourceRecord::Data::Event::getEvent(void) const  std::string const & GEDCOMParser::SourceRecord::Data::Event::getEvent(void) const
190  {  {
191    return _event;    return _event;

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