Apollo 11.0
自动驾驶开放平台
base_map_node_config.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2019 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16#pragma once
17
18#include <memory>
19
22
23namespace apollo {
24namespace localization {
25namespace msf {
26namespace pyramid_map {
27
28#define MD5LENTH 16
29
32 public:
34 virtual ~BaseMapNodeConfig();
35
37 // virtual BaseMapNodeConfig* alloc_new_map_node_config();
39 virtual std::shared_ptr<BaseMapNodeConfig> Clone();
43 virtual unsigned int LoadBinary(const unsigned char *buf);
48 virtual unsigned int CreateBinary(unsigned char *buf, size_t buf_size) const;
50 virtual unsigned int GetBinarySize() const;
51
52 public:
55 unsigned char body_md5_[MD5LENTH] = {0};
56 size_t body_size_ = 0;
57 bool has_map_version_ = true;
58 bool has_body_md5_ = true;
59};
60
61} // namespace pyramid_map
62} // namespace msf
63} // namespace localization
64} // namespace apollo
#define MD5LENTH
virtual std::shared_ptr< BaseMapNodeConfig > Clone()
Alloc a new map node config.
virtual unsigned int GetBinarySize() const
Get the size of the config in bytes.
virtual unsigned int CreateBinary(unsigned char *buf, size_t buf_size) const
Create the binary map node config.
virtual unsigned int LoadBinary(const unsigned char *buf)
Load the map node config from a binary chunk.
class register implement
Definition arena_queue.h:37