Advertisement
Guest User

console.cpp

a guest
Oct 8th, 2012
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #include "Console.h"
  2. #include <iostream>
  3. #include <sstream>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8. // Global static pointer used to ensure a single instance of the class.
  9. Console* Console::m_pInstance = NULL;
  10.  
  11. Console::Console()
  12. {
  13.  
  14. }
  15.  
  16. Console::Console(Console const&)
  17. {
  18.  
  19. }
  20.  
  21. Console& Console::operator=(Console const&)
  22. {
  23.  
  24. }
  25.  
  26. Console* Console::getInstance()
  27. {
  28.     if (!m_pInstance)   // Only allow one instance of class to be generated.
  29.         m_pInstance = new Console;
  30.  
  31.     return m_pInstance;
  32. }
  33.  
  34. template <typename T>
  35. void Console::readObjectData(T& o) {
  36.     //cin >> o;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement