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

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

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

revision 1.1 by cpcp, Wed Feb 19 21:13:05 2003 UTC revision 1.2 by cpcp, Sun Feb 23 21:34:44 2003 UTC
# Line 11  std::string const GEDCOMParser::IdGenera Line 11  std::string const GEDCOMParser::IdGenera
11      }      }
12    while (std::find(_existing_ids.begin(), _existing_ids.end(), tmp_str_id) != _existing_ids.end());    while (std::find(_existing_ids.begin(), _existing_ids.end(), tmp_str_id) != _existing_ids.end());
13    res = "@" + tmp_str_id + "@";    res = "@" + tmp_str_id + "@";
   std::cout << "IdGenerator::getId() => " << res << std::endl;  
14    return res;    return res;
15  }  }
16    
17  void GEDCOMParser::IdGenerator::addUsedId(std::string const &id)  void GEDCOMParser::IdGenerator::addUsedId(std::string const &id)
18  {  {
   std::cout << "IdGenerator::addUsedId(" << id << ")" << std::endl;  
19    _existing_ids.push_back(id);    _existing_ids.push_back(id);
20    return;    return;
21  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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