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