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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/RepositoryRecord.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 47  void GEDCOMParser::RepositoryRecord::set Line 47  void GEDCOMParser::RepositoryRecord::set
47    return;    return;
48  }  }
49    
 GEDCOMParser::Address * GEDCOMParser::RepositoryRecord::setAddress(GEDCOMParser::Address * const data = 0)  
 {  
   GEDCOMParser::Address  * tmp_data = data;  
   if (data == 0)  
     {  
       GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();  
       tmp_data = factory->createAddress();  
     }  
   _address = SmartPtr<Address>(tmp_data);  
   return _address.getPtr();  
 }  
   
 GEDCOMParser::NoteStructure * GEDCOMParser::RepositoryRecord::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::RepositoryRecord::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::RepositoryRecord::setRin(std::string const &value)  
 {  
   _rin = value;  
   return;  
 }  
   
 GEDCOMParser::ChangeDate * GEDCOMParser::RepositoryRecord::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();      
 }  
   
 SmartPtr<GEDCOMParser::Address> const & GEDCOMParser::RepositoryRecord::getAddress(void) const  
 {  
   return _address;  
 }  
   
 GEDCOMParser::NoteStructures_t const &GEDCOMParser::RepositoryRecord::getNoteStructures(void) const  
 {  
   return _notes;  
 }  
   
 GEDCOMParser::UserReferences_t const &GEDCOMParser::RepositoryRecord::getUserReferences(void) const  
 {  
   return _user_references;  
 }  
   
 SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::RepositoryRecord::getChangeDate(void) const  
 {  
   return _change_date;  
 }  
   
   
50  std::string const & GEDCOMParser::RepositoryRecord::getId(void) const  std::string const & GEDCOMParser::RepositoryRecord::getId(void) const
51  {  {
52    return _id;    return _id;
# Line 132  std::string const & GEDCOMParser::Reposi Line 57  std::string const & GEDCOMParser::Reposi
57    return _name;    return _name;
58  }  }
59    
 std::string const & GEDCOMParser::RepositoryRecord::getRin(void) const  
 {  
   return _rin;  
 }  
   
60  void GEDCOMParser::RepositoryRecord::Accept(GEDCOMParser::GEDCOMVisitor * v)  void GEDCOMParser::RepositoryRecord::Accept(GEDCOMParser::GEDCOMVisitor * v)
61  {  {
62    v->VisitRepositoryRecord(this);    v->VisitRepositoryRecord(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