Design Pattern Examples
Overview of object-oriented design patterns
c/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 "Bridge_ILogger.h"
11
19ILogger* CreateFileLogger(const char* filename);
20
25void DestroyFileLogger(ILogger* logger);
26
27#endif // __BRIDGE_FILELOGGER_H__
28
Declaration of the ILogger interface, along with the CreateLogger() and DestroyLogger() functions use...
ILogger * CreateFileLogger(const char *filename)
Create an instance of an ILogger that outputs to a file.
void DestroyFileLogger(ILogger *logger)
Destroy the given instance of an ILogger for outputting to a file.