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