Guest User

Untitled

a guest
Jul 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #pragma once
  2. #ifndef DOSIERER_VERWALTUNG_H
  3. #define DOSIERER_VERWALTUNG_H DOSIERER_VERWALTUNG_H
  4.  
  5.  
  6. #include <iostream>
  7. #include <string>
  8. #include <list>
  9. #include <fstream>
  10. using namespace std;
  11.  
  12. #include "Dosierer.h"
  13.  
  14. /**
  15. * Implementierung nach dem Singleton Pattern
  16. */
  17. class Dosierer_Verwaltung {
  18.  
  19. static bool instanceFlag;
  20. static string rezepte_datei;
  21. static Dosierer_Verwaltung* single;
  22. list<Dosierer> dosierer;
  23. Dosierer_Verwaltung();
  24.  
  25. public:
  26.  
  27. static Dosierer_Verwaltung* getInstance();
  28. virtual ~Dosierer_Verwaltung();
  29.  
  30. };
  31.  
  32. // initialize with no instance
  33. bool Dosierer_Verwaltung::instanceFlag = false;
  34. Dosierer_Verwaltung* Dosierer_Verwaltung::single = NULL;
  35. string Dosierer_Verwaltung::rezepte_datei = "Rezepte.csv";
  36.  
  37. #endif //DOSIERER_VERWALTUNG_H
Add Comment
Please, Sign In to add comment