/home/martin/workspace/OpenStreetNav/src/xmlparse/relation-pimpl.cxx
Go to the documentation of this file.
00001 // Not copyrighted - public domain.
00002 //
00003 // This sample parser implementation was generated by CodeSynthesis XSD,
00004 // an XML Schema to C++ data binding compiler. You may use it in your
00005 // programs without any restrictions.
00006 //
00007 
00008 #include "relation-pimpl.hxx"
00009 
00010 // relation_pimpl
00011 //
00012 
00013 void relation_pimpl::
00014 pre ()
00015 {
00016     tags.clear();
00017     members.clear();
00018 }
00019 
00020 void relation_pimpl::
00021 tag (const std::pair<std::string, std::string>& tag)
00022 {
00023     tags.insert(tag);
00024 }
00025 
00026 void relation_pimpl::
00027 member (const std::pair<std::string, std::shared_ptr<osm::Element> >& member)
00028 {
00029   members.insert(member);
00030 }
00031 
00032 void relation_pimpl::
00033 id (long long id)
00034 {
00035     _id=id;
00036 }
00037 
00038 osm::Relation relation_pimpl::
00039 post_relation ()
00040 {
00041     osm::Relation ret(_id);
00042     ret.tags=tags;
00043     ret.members=members;
00044     return ret;
00045 }
00046 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines