Apollo 10.0
自动驾驶开放平台
roads_xml_parser.h
浏览该文件的文档.
1/* Copyright 2017 The Apollo Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14=========================================================================*/
15#pragma once
16
17#include <string>
18#include <vector>
19
20#include <tinyxml2.h>
21
24
25namespace apollo {
26namespace hdmap {
27namespace 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
A general class to denote the return status of an API call.
Definition status.h:43
static Status Parse(const tinyxml2::XMLElement &xml_node, std::vector< RoadInternal > *roads)
apollo::hdmap::Road_Type PbRoadType
class register implement
Definition arena_queue.h:37