Design Pattern Examples
Overview of object-oriented design patterns
cplusplus/Bridge_NullLogger.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __BRIDGE_NULLLOGGER_H__
8#define __BRIDGE_NULLLOGGER_H__
9
10#include <memory>
12
14{
15
20 {
21 public:
26 static std::unique_ptr<ILogger> CreateLogger();
27 };
28
29} // end namespace
30
31#endif // __BRIDGE_NULLLOGGER_H__
Declaration of the ILogger interface used by all logger classes in the Bridge Pattern.
Represents a logger that throws away anything sent its way.
static std::unique_ptr< ILogger > CreateLogger()
Create an instance of a null logger, a logger that doesn't do anything.
The namespace containing all Design Pattern Examples implemented in C++.