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"
27
#include "
cyber/record/file/record_file_reader.h
"
28
#include "
cyber/record/file/record_file_writer.h
"
29
30
using ::apollo::cyber::proto::ChannelCache;
31
using ::apollo::cyber::proto::ChunkBody;
32
using ::apollo::cyber::proto::ChunkHeader;
33
using ::apollo::cyber::proto::Header;
34
35
namespace
apollo
{
36
namespace
cyber {
37
namespace
record {
38
39
class
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_
apollo::cyber::record::RecordFileReader
Definition
record_file_reader.h:45
apollo::cyber::record::RecordFileWriter
Definition
record_file_writer.h:77
apollo::cyber::record::Recoverer
Definition
recoverer.h:39
apollo::cyber::record::Recoverer::Proc
bool Proc()
Definition
recoverer.cc:36
apollo::cyber::record::Recoverer::~Recoverer
virtual ~Recoverer()
Definition
recoverer.cc:34
log.h
apollo
class register implement
Definition
arena_queue.h:37
record_file_reader.h
record_file_writer.h
cyber
tools
cyber_recorder
recoverer.h