blob: 6c2fb64e6ca46c28f225b669832b4a92a4a6b77d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// file : xsde/cxx/sys-error.hxx
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
#ifndef XSDE_CXX_SYS_ERROR_HXX
#define XSDE_CXX_SYS_ERROR_HXX
namespace xsde
{
namespace cxx
{
struct sys_error
{
enum value
{
none,
no_memory,
open_failed,
read_failed,
write_failed
};
sys_error (value);
operator value () const
{
return v_;
}
static const char*
text (value);
private:
value v_;
};
}
}
#include <xsde/cxx/sys-error.ixx>
#endif // XSDE_CXX_SYS_ERROR_HXX
|