1 |
douglas |
370 |
// Represent |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#ifndef _Represent_hpp_ |
8 |
|
|
#define _Represent_hpp_ |
9 |
|
|
|
10 |
|
|
#include <menes/platform.hpp> |
11 |
|
|
|
12 |
|
|
#ifdef MENES_PRAGMA_ONCE |
13 |
|
|
#pragma once |
14 |
|
|
#endif |
15 |
|
|
|
16 |
|
|
#include <menes-api/console.hpp> |
17 |
|
|
#include <menes-ios/string.hpp> |
18 |
|
|
|
19 |
douglas |
373 |
#define _sforeach(type, item, set) \ |
20 |
|
|
for (bool _stop(true); _stop; ) \ |
21 |
|
|
for (const type& _set = set; _stop; _stop = false) \ |
22 |
|
|
_for (type::const_iterator, item, _set.begin(), _set.end()) |
23 |
|
|
|
24 |
douglas |
370 |
class Represent |
25 |
|
|
{ |
26 |
|
|
private: |
27 |
|
|
public: |
28 |
|
|
Represent(); |
29 |
|
|
}; |
30 |
|
|
|
31 |
|
|
#endif // _Represent_hpp_ |