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

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

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

revision 1.6 by cpcp, Sun Feb 23 21:34:44 2003 UTC revision 1.7 by cpcp, Sun Nov 16 15:22:13 2003 UTC
# Line 51  void GEDCOMParser::NoteRecord::concSubmi Line 51  void GEDCOMParser::NoteRecord::concSubmi
51    return;    return;
52  }  }
53    
 GEDCOMParser::SourceCitation * GEDCOMParser::NoteRecord::addSourceCitation(GEDCOMParser::SourceCitation * const data = 0)  
 {  
   GEDCOMParser::SourceCitation  * tmp_data = data;  
   if (data == 0)  
     {  
       GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();  
       tmp_data = factory->createSourceCitation();  
     }  
   _sources.push_back(SmartPtr<SourceCitation>(tmp_data));  
   return _sources.back().getPtr();    
 }  
   
 GEDCOMParser::UserReference * GEDCOMParser::NoteRecord::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();    
 }  
   
 void GEDCOMParser::NoteRecord::setRin(std::string const & value)  
 {  
   _rin = value;  
   return;  
 }  
   
 GEDCOMParser::ChangeDate * GEDCOMParser::NoteRecord::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();    
 }  
   
 GEDCOMParser::SourceCitations_t const &GEDCOMParser::NoteRecord::getSourceCitations(void) const  
 {  
   return _sources;  
 }  
   
 GEDCOMParser::UserReferences_t const &GEDCOMParser::NoteRecord::getUserReferences(void) const  
 {  
   return _user_references;  
 }  
   
 SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::NoteRecord::getChangeDate(void) const  
 {  
   return _change_date;  
 }  
   
54  std::string const &GEDCOMParser::NoteRecord::getId(void) const  std::string const &GEDCOMParser::NoteRecord::getId(void) const
55  {  {
56    return _note_id;    return _note_id;
# Line 118  std::string const &GEDCOMParser::NoteRec Line 61  std::string const &GEDCOMParser::NoteRec
61    return _submitter_text;    return _submitter_text;
62  }  }
63    
 std::string const &GEDCOMParser::NoteRecord::getRin(void) const  
 {  
   return _rin;  
 }  
   
64  void GEDCOMParser::NoteRecord::Accept(GEDCOMParser::GEDCOMVisitor * v)  void GEDCOMParser::NoteRecord::Accept(GEDCOMParser::GEDCOMVisitor * v)
65  {  {
66    v->VisitNoteRecord(this);    v->VisitNoteRecord(this);

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

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