All pastes #94423 Raw Edit

Miscellany

public cpp v1 · immutable
#94423 ·published 2006-07-21 07:50 UTC
rendered paste body
#ifndef __CONTROLLER_H#define __CONTROLLER_H#include "ControllerState.hpp"//#include "LoggerState.hpp"#include <iostream>class Controller {        private:                static Controller instance;                std::ostream logfile;                ControllerState * state;                LoggerState * LOGGER_STATE;               // SimpleState *SIMPLE_STATE;        public:                static Controller getInstance();                void execute(std::string state, std::string service, std::string input);                void setState(ControllerState * newState);                void setStream(fstream * newStream);}; #endif