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