Apollo 10.0
自动驾驶开放平台
recoverer.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2018 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
17#ifndef CYBER_TOOLS_CYBER_RECORDER_RECOVERER_H_
18#define CYBER_TOOLS_CYBER_RECORDER_RECOVERER_H_
19
20#include <algorithm>
21#include <memory>
22#include <string>
23#include <vector>
24
25#include "cyber/common/log.h"
26#include "cyber/proto/record.pb.h"
29
30using ::apollo::cyber::proto::ChannelCache;
31using ::apollo::cyber::proto::ChunkBody;
32using ::apollo::cyber::proto::ChunkHeader;
33using ::apollo::cyber::proto::Header;
34
35namespace apollo {
36namespace cyber {
37namespace record {
38
39class Recoverer {
40 public:
41 Recoverer(const std::string& input_file, const std::string& output_file);
42 virtual ~Recoverer();
43 bool Proc();
44
45 private:
46 RecordFileReader reader_;
47 RecordFileWriter writer_;
48 std::string input_file_;
49 std::string output_file_;
50 std::vector<std::string> channel_vec_;
51};
52
53} // namespace record
54} // namespace cyber
55} // namespace apollo
56
57#endif // CYBER_TOOLS_CYBER_RECORDER_RECOVERER_H_
class register implement
Definition arena_queue.h:37