Fast DDS
Version 3.6.1.0
Fast DDS
Toggle main menu visibility
Loading...
Searching...
No Matches
OStreamConsumer.hpp
1
// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef FASTDDS_DDS_LOG__OSTREAMCONSUMER_HPP
16
#define FASTDDS_DDS_LOG__OSTREAMCONSUMER_HPP
17
18
#include <iostream>
19
20
#include <fastdds/dds/log/Log.hpp>
21
22
namespace
eprosima
{
23
namespace
fastdds
{
24
namespace
dds
{
25
31
class
OStreamConsumer
:
public
LogConsumer
32
{
33
public
:
34
35
virtual
~OStreamConsumer
() =
default
;
36
41
FASTDDS_EXPORTED_API
void
Consume
(
42
const
Log::Entry
& entry)
override
;
43
44
protected
:
45
50
FASTDDS_EXPORTED_API
virtual
std::ostream&
get_stream
(
51
const
Log::Entry
& entry) = 0;
52
};
53
54
}
// namespace dds
55
}
// namespace fastdds
56
}
// namespace eprosima
57
58
#endif
// FASTDDS_DDS_LOG__OSTREAMCONSUMER_HPP
eprosima::fastdds::dds::LogConsumer
Consumes a log entry to output it somewhere.
Definition
Log.hpp:225
eprosima::fastdds::dds::OStreamConsumer
Definition
OStreamConsumer.hpp:32
eprosima::fastdds::dds::OStreamConsumer::Consume
FASTDDS_EXPORTED_API void Consume(const Log::Entry &entry) override
eprosima::fastdds::dds::OStreamConsumer::get_stream
virtual FASTDDS_EXPORTED_API std::ostream & get_stream(const Log::Entry &entry)=0
eprosima::fastdds::dds::OStreamConsumer::~OStreamConsumer
virtual ~OStreamConsumer()=default
eprosima::fastdds::dds
Definition
BuiltinTopicKey.hpp:26
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::dds::Log::Entry
Definition
Log.hpp:174
include
fastdds
dds
log
OStreamConsumer.hpp
Generated on
for