CppLogging  1.0.4.0
C++ Logging Library
exclusive_processor.h
Go to the documentation of this file.
1 
9 #ifndef CPPLOGGING_PROCESSORS_EXCLUSIVE_PROCESSOR_H
10 #define CPPLOGGING_PROCESSORS_EXCLUSIVE_PROCESSOR_H
11 
12 #include "logging/processor.h"
13 
14 namespace CppLogging {
15 
17 
25 {
26 public:
28 
31  explicit ExclusiveProcessor(const std::shared_ptr<Layout>& layout) : Processor(layout) {}
34  virtual ~ExclusiveProcessor() = default;
35 
38 
39  // Implementation of Processor
40  bool ProcessRecord(Record& record) override;
41 };
42 
43 } // namespace CppLogging
44 
45 #endif // CPPLOGGING_PROCESSORS_EXCLUSIVE_PROCESSOR_H
Exclusive logging processor.
ExclusiveProcessor(const ExclusiveProcessor &)=delete
bool ProcessRecord(Record &record) override
Process the given logging record through all child filters, layouts and appenders.
ExclusiveProcessor & operator=(const ExclusiveProcessor &)=delete
ExclusiveProcessor(ExclusiveProcessor &&)=delete
virtual ~ExclusiveProcessor()=default
ExclusiveProcessor(const std::shared_ptr< Layout > &layout)
Initialize exclusive logging processor with a given layout interface.
ExclusiveProcessor & operator=(ExclusiveProcessor &&)=delete
Logging processor interface.
Definition: processor.h:31
std::shared_ptr< Layout > & layout() noexcept
Get the logging processor layout.
Definition: processor.h:46
Logging record.
Definition: record.h:37
C++ Logging project definitions.
Definition: appender.h:15
Logging processor interface definition.