/home/martin/workspace/OpenStreetNav/src/xmlparse/node-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 "node-pimpl.hxx"
00009 
00010 // node_pimpl
00011 //
00012 
00013 void node_pimpl::
00014 pre ()
00015 {
00016     tags.clear();
00017 }
00018 
00019 void node_pimpl::
00020 tag (const std::pair<std::string, std::string>& tag)
00021 {
00022     tags.insert(tag);
00023 }
00024 
00025 void node_pimpl::
00026 id (long long id)
00027 {
00028     _id=id;
00029 }
00030 
00031 void node_pimpl::
00032 lat (double lat)
00033 {
00034   lt=lat;
00035 }
00036 
00037 void node_pimpl::
00038 lon (double lon)
00039 {
00040   ln=lon;
00041 }
00042 
00043 osm::Node node_pimpl::
00044 post_node ()
00045 {
00046   osm::Node ret(_id, lt, ln);
00047   ret.tags=tags;
00048   return ret;
00049 }
00050 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines