blob: e66a9a3c51ea5ad38107b662dfaa6bebcc6f84f6 (
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
42
|
// file : xsde/cxx/sys-error.hxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// 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
|