23 lines
309 B
C++
23 lines
309 B
C++
|
/*
|
|||
|
* Singleton.hpp
|
|||
|
*
|
|||
|
* Created on: 4 нояб. 2021 г.
|
|||
|
* Author: alexander
|
|||
|
*/
|
|||
|
|
|||
|
#pragma once
|
|||
|
|
|||
|
#include <string>
|
|||
|
|
|||
|
class Singleton
|
|||
|
{
|
|||
|
private:
|
|||
|
static Singleton *_instance;
|
|||
|
protected:
|
|||
|
Singleton();
|
|||
|
~Singleton();
|
|||
|
public:
|
|||
|
static Singleton* Instance();
|
|||
|
std::string getDiscription();
|
|||
|
};
|