1 |
// Iffy |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _Iffy_hpp_ |
8 |
#define _Iffy_hpp_ |
9 |
|
10 |
#include <menes/platform.hpp> |
11 |
|
12 |
#ifdef MENES_PRAGMA_ONCE |
13 |
#pragma once |
14 |
#endif |
15 |
|
16 |
#ifdef _WIN32 |
17 |
#pragma warning(disable:4267) |
18 |
#endif |
19 |
|
20 |
#include <menes-api/console.hpp> |
21 |
#include <menes-ios/string.hpp> |
22 |
|
23 |
class Iffy |
24 |
{ |
25 |
private: |
26 |
void iffy(ios::Reader& in, ios::Writer& out); |
27 |
bool read(ios::Reader& in, ext::Buffer& segment, bool text); |
28 |
public: |
29 |
Iffy(const ext::String& in, const ext::String& out); |
30 |
static ext::String program; |
31 |
static bool debug; |
32 |
}; |
33 |
|
34 |
#endif // _Iffy_hpp_ |