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

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

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

revision 1.1.2.1 by cpcp, Sun Aug 18 19:49:21 2002 UTC revision 1.1.2.2 by cpcp, Sun Oct 27 11:58:04 2002 UTC
# Line 29  void GEDCOMParser::Data::setData(std::st Line 29  void GEDCOMParser::Data::setData(std::st
29    
30  void GEDCOMParser::Data::setDate(std::string const &value)  void GEDCOMParser::Data::setDate(std::string const &value)
31  {  {
32    _date = value;    if (_date != 0)
33        {
34          delete _date; _date = 0;
35        }
36      _date = new GEDCOMParser::DateManagement::DateValue(value);
37    return;    return;
38  }  }
39    
# Line 46  std::string const &GEDCOMParser::Data::g Line 50  std::string const &GEDCOMParser::Data::g
50    return _data;    return _data;
51  }  }
52    
53  std::string const &GEDCOMParser::Data::getDate(void) const  std::string const GEDCOMParser::Data::getDate(void) const
54  {  {
55    return _date;    std::string res;
56      if (_date != 0)
57        {
58          res = _date->getDisplayValue();
59        }
60      return res;
61  }  }
62    
63  std::string const &GEDCOMParser::Data::getCopr(void) const  std::string const &GEDCOMParser::Data::getCopr(void) const

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

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