Gazebo Transport
API Reference
13.4.1
insert_drive_file
Tutorials
library_books
Classes
toc
Namespaces
insert_drive_file
Files
launch
Gazebo Website
Index
List
Hierarchy
Members: All
Members: Functions
Members: Variables
Members: Typedefs
Members: Enumerations
Members: Enumerator
List
Members
Functions
Typedefs
Variables
Enumerations
Enumerator
src
gz-transport
log
include
gz
transport
log
Batch.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Open Source Robotics Foundation
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
18
#ifndef GZ_TRANSPORT_LOG_BATCH_HH_
19
#define GZ_TRANSPORT_LOG_BATCH_HH_
20
21
#include <memory>
22
23
#include <gz/transport/config.hh>
24
#include <gz/transport/log/Export.hh>
25
#include <
gz/transport/log/MsgIter.hh
>
26
27
namespace
gz::transport::log
28
{
29
// Inline bracket to help doxygen filtering.
30
inline
namespace
GZ_TRANSPORT_VERSION_NAMESPACE {
31
//
33
class
BatchPrivate;
34
class
Log
;
35
37
class
GZ_TRANSPORT_LOG_VISIBLE
Batch
38
{
40
public
:
Batch
();
41
44
public
:
Batch
(
Batch
&&_old);
// NOLINT
45
49
public
:
Batch
&
operator=
(
Batch
&&_other);
// NOLINT
50
52
public
:
~Batch
();
53
55
public
:
using
iterator
=
MsgIter
;
56
61
public
:
iterator
begin
();
62
68
public
:
iterator
end
();
69
70
#ifdef _WIN32
71
// Disable warning C4251 which is triggered by
72
// std::*
73
#pragma warning(push)
74
#pragma warning(disable: 4251)
75
#endif
77
private
:
std::unique_ptr<BatchPrivate>
dataPtr;
78
#ifdef _WIN32
79
#pragma warning(pop)
80
#endif
81
85
private
:
Batch
(
86
std::unique_ptr<BatchPrivate>
&&_pimpl);
// NOLINT(build/c++11)
87
89
friend
class
Log
;
90
};
91
}
92
}
93
#endif