~ubuntu-branches/debian/sid/3depict/sid

« back to all changes in this revision

Viewing changes to src/winconsole.h

  • Committer: Bazaar Package Importer
  • Author(s): D Haley
  • Date: 2010-08-09 21:23:50 UTC
  • Revision ID: james.westby@ubuntu.com-20100809212350-cg6yumndhwi3bqws
Tags: upstream-0.0.1
ImportĀ upstreamĀ versionĀ 0.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      winconsole.h - Windows console debugging header
 
3
 *      Copyright (C) 2010, William W.
 
4
 
 
5
 *      This program is free software: you can redistribute it and/or modify
 
6
 *      it under the terms of the GNU General Public License as published by
 
7
 *      the Free Software Foundation, either version 3 of the License, or
 
8
 *      (at your option) any later version.
 
9
 
 
10
 *      This program is distributed in the hope that it will be useful,
 
11
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *      GNU General Public License for more details.
 
14
 
 
15
 *      You should have received a copy of the GNU General Public License
 
16
 *      along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
*/
 
18
 
 
19
 
 
20
// winconsole.h
 
21
#ifndef __CONSOLE_H__
 
22
#define __CONSOLE_H__
 
23
 
 
24
#include <fstream>
 
25
 
 
26
class winconsole
 
27
{
 
28
private:
 
29
  std::ofstream m_out;
 
30
  std::ofstream m_err;
 
31
  std::ifstream m_in;
 
32
 
 
33
  std::streambuf* m_old_cout;
 
34
  std::streambuf* m_old_cerr;
 
35
  std::streambuf* m_old_cin;
 
36
 
 
37
public:
 
38
  winconsole();
 
39
  ~winconsole();
 
40
 
 
41
  void hide();
 
42
  void show();
 
43
};
 
44
 
 
45
#endif