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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
--- lib/odbx_iface.hpp.orig 2010-08-01 02:08:41 UTC
+++ lib/odbx_iface.hpp
@@ -27,10 +27,10 @@ namespace OpenDBX
public:
virtual ~Lob_Iface() throw() {}
- virtual void close() throw( std::exception ) = 0;
+ virtual void close() noexcept(false) = 0;
- virtual ssize_t read( void* buffer, size_t buflen ) throw( std::exception ) = 0;
- virtual ssize_t write( void* buffer, size_t buflen ) throw( std::exception ) = 0;
+ virtual ssize_t read( void* buffer, size_t buflen ) noexcept(false) = 0;
+ virtual ssize_t write( void* buffer, size_t buflen ) noexcept(false) = 0;
};
@@ -40,22 +40,22 @@ namespace OpenDBX
public:
virtual ~Result_Iface() throw() {}
- virtual void finish() throw( std::exception ) = 0;
+ virtual void finish() noexcept(false) = 0;
- virtual odbxres getResult( struct timeval* timeout, unsigned long chunk ) throw( std::exception ) = 0;
+ virtual odbxres getResult( struct timeval* timeout, unsigned long chunk ) noexcept(false) = 0;
- virtual odbxrow getRow() throw( std::exception ) = 0;
- virtual uint64_t rowsAffected() throw( std::exception ) = 0;
+ virtual odbxrow getRow() noexcept(false) = 0;
+ virtual uint64_t rowsAffected() noexcept(false) = 0;
- virtual unsigned long columnCount() throw( std::exception ) = 0;
- virtual unsigned long columnPos( const string& name ) throw( std::exception ) = 0;
- virtual const string columnName( unsigned long pos ) throw( std::exception ) = 0;
- virtual odbxtype columnType( unsigned long pos ) throw( std::exception ) = 0;
+ virtual unsigned long columnCount() noexcept(false) = 0;
+ virtual unsigned long columnPos( const string& name ) noexcept(false) = 0;
+ virtual const string columnName( unsigned long pos ) noexcept(false) = 0;
+ virtual odbxtype columnType( unsigned long pos ) noexcept(false) = 0;
- virtual unsigned long fieldLength( unsigned long pos ) throw( std::exception ) = 0;
- virtual const char* fieldValue( unsigned long pos ) throw( std::exception ) = 0;
+ virtual unsigned long fieldLength( unsigned long pos ) noexcept(false) = 0;
+ virtual const char* fieldValue( unsigned long pos ) noexcept(false) = 0;
- virtual Lob_Iface* getLob( const char* value ) throw( std::exception ) = 0;
+ virtual Lob_Iface* getLob( const char* value ) noexcept(false) = 0;
};
@@ -65,7 +65,7 @@ namespace OpenDBX
public:
virtual ~Stmt_Iface() throw() {};
- virtual Result_Iface* execute() throw( std::exception ) = 0;
+ virtual Result_Iface* execute() noexcept(false) = 0;
// virtual void bind( const void* data, unsigned long size, size_t pos, int flags ) = 0;
// virtual size_t count() = 0;
@@ -78,19 +78,19 @@ namespace OpenDBX
public:
virtual ~Conn_Iface() throw() {};
- virtual void finish() throw( std::exception ) = 0;
+ virtual void finish() noexcept(false) = 0;
- virtual void bind( const char* database, const char* who, const char* cred, odbxbind method = ODBX_BIND_SIMPLE ) throw( std::exception ) = 0;
- virtual void unbind() throw( std::exception ) = 0;
+ virtual void bind( const char* database, const char* who, const char* cred, odbxbind method = ODBX_BIND_SIMPLE ) noexcept(false) = 0;
+ virtual void unbind() noexcept(false) = 0;
- virtual bool getCapability( odbxcap cap ) throw( std::exception ) = 0;
+ virtual bool getCapability( odbxcap cap ) noexcept(false) = 0;
- virtual void getOption( odbxopt option, void* value ) throw( std::exception ) = 0;
- virtual void setOption( odbxopt option, void* value ) throw( std::exception ) = 0;
+ virtual void getOption( odbxopt option, void* value ) noexcept(false) = 0;
+ virtual void setOption( odbxopt option, void* value ) noexcept(false) = 0;
- virtual string& escape( const char* from, unsigned long fromlen, string& to ) throw( std::exception ) = 0;
+ virtual string& escape( const char* from, unsigned long fromlen, string& to ) noexcept(false) = 0;
- virtual Stmt_Iface* create( const string& sql, Stmt::Type type ) throw( std::exception ) = 0;
+ virtual Stmt_Iface* create( const string& sql, Stmt::Type type ) noexcept(false) = 0;
};
} // namespace
|