Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #ifndef DOSIERER_VERWALTUNG_H
- #define DOSIERER_VERWALTUNG_H DOSIERER_VERWALTUNG_H
- #include <iostream>
- #include <string>
- #include <list>
- #include <fstream>
- using namespace std;
- #include "Dosierer.h"
- /**
- * Implementierung nach dem Singleton Pattern
- */
- class Dosierer_Verwaltung {
- static bool instanceFlag;
- static string rezepte_datei;
- static Dosierer_Verwaltung* single;
- list<Dosierer> dosierer;
- Dosierer_Verwaltung();
- public:
- static Dosierer_Verwaltung* getInstance();
- virtual ~Dosierer_Verwaltung();
- };
- // initialize with no instance
- bool Dosierer_Verwaltung::instanceFlag = false;
- Dosierer_Verwaltung* Dosierer_Verwaltung::single = NULL;
- string Dosierer_Verwaltung::rezepte_datei = "Rezepte.csv";
- #endif //DOSIERER_VERWALTUNG_H
Add Comment
Please, Sign In to add comment