Fast DDS  Version 3.6.1.0
Fast DDS
StdoutConsumer.hpp
1 // Copyright 2019 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__STDOUTCONSUMER_HPP
16 #define FASTDDS_DDS_LOG__STDOUTCONSUMER_HPP
17 
18 #include <fastdds/dds/log/Log.hpp>
19 #include <fastdds/dds/log/OStreamConsumer.hpp>
20 
21 namespace eprosima {
22 namespace fastdds {
23 namespace dds {
24 
26 {
27 public:
28 
29  virtual ~StdoutConsumer() = default;
30 
31 private:
32 
37  FASTDDS_EXPORTED_API virtual std::ostream& get_stream(
38  const Log::Entry& entry) override;
39 };
40 
41 } // namespace dds
42 } // namespace fastdds
43 } // namespace eprosima
44 
45 #endif // FASTDDS_DDS_LOG__STDOUTCONSUMER_HPP
Definition: OStreamConsumer.hpp:32
Definition: StdoutConsumer.hpp:26
Definition: DomainParticipant.hpp:46
Definition: Log.hpp:174