view interps/sadol/Console.hpp @ 7850:ed98f2c14d01

<hppavilion[1]> mkx bin/culprits2//GOAT=`shuf -n1 share/scapegoats`; hg log --removed -- "$1" | grep summary: | sed "s/hppavilion\\[1\\]/$GOAT/g" | sed "s/ +/ /g" | sed "s/^ //" | awk \'{print substr($2,2,length($2)-2)}\'| sed "s/.$/\\x0F&/" | xargs
author HackBot
date Fri, 06 May 2016 03:18:20 +0000
parents 859f9b4339e6
children
line wrap: on
line source

/*
 * BDSM2
 * Author: Adam Sawicki
 * http://www.regedit.risp.pl
 * mailto:regedit@risp.pl
 */
#ifndef CONSOLE_H_
#define CONSOLE_H_

class Console
{
private:
	char m_Buffer[65536];

public:
	// one raw character from input
	char InChar();
	// one line from input
	void InString(string *s);
	// one line from input
	int InInteger();
	// one line from input
	double InDouble();

	void OutInteger(int x);
	void OutDouble(double x);
	void OutString(const string &s);
};

extern Console g_Console;

#endif