Design Pattern Examples
Overview of object-oriented design patterns
cplusplus/Bridge_ConsoleLogger.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __BRIDGE_CONSOLELOGGER_H__
8#define __BRIDGE_CONSOLELOGGER_H__
9
10#include <memory>
12
14{
15
20 {
21 public:
27 static std::unique_ptr<ILogger> CreateLogger();
28 };
29
30} // end namespace
31
32#endif // __BRIDGE_CONSOLELOGGER_H__
33
Declaration of the ILogger interface used by all logger classes in the Bridge Pattern.
Represents a logger that writes logging to the standard output.
static std::unique_ptr< ILogger > CreateLogger()
Create an instance of a console logger, which writes to the standard output.
The namespace containing all Design Pattern Examples implemented in C++.