Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Console.h"
- #include <iostream>
- #include <sstream>
- #include <string>
- using namespace std;
- // Global static pointer used to ensure a single instance of the class.
- Console* Console::m_pInstance = NULL;
- Console::Console()
- {
- }
- Console::Console(Console const&)
- {
- }
- Console& Console::operator=(Console const&)
- {
- }
- Console* Console::getInstance()
- {
- if (!m_pInstance) // Only allow one instance of class to be generated.
- m_pInstance = new Console;
- return m_pInstance;
- }
- template <typename T>
- void Console::readObjectData(T& o) {
- //cin >> o;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement