Apollo  6.0
Open source self driving car software
roads_xml_parser.h
Go to the documentation of this file.
1 /* Copyright 2017 The Apollo Authors. All Rights Reserved.
2 
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 
7  http://www.apache.org/licenses/LICENSE-2.0
8 
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 =========================================================================*/
15 #pragma once
16 
17 #include <string>
18 #include <vector>
19 
20 #include <tinyxml2.h>
21 
24 
25 namespace apollo {
26 namespace hdmap {
27 namespace adapter {
28 
30  public:
31  static Status Parse(const tinyxml2::XMLElement& xml_node,
32  std::vector<RoadInternal>* roads);
33 
34  private:
35  static void Parse_road_objects(const tinyxml2::XMLElement& xml_node,
36  RoadInternal* road_info);
37  static void Parse_road_signals(const tinyxml2::XMLElement& xml_node,
38  RoadInternal* road_info);
39 
40  static Status to_pb_road_type(const std::string& type,
41  PbRoadType* pb_road_type);
42 };
43 
44 } // namespace adapter
45 } // namespace hdmap
46 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: common_define.h:126
apollo::hdmap::Road_Type PbRoadType
Definition: common_define.h:64
static Status Parse(const tinyxml2::XMLElement &xml_node, std::vector< RoadInternal > *roads)
Definition: roads_xml_parser.h:29
A general class to denote the return status of an API call. It can either be an OK status for success...
Definition: status.h:43