ANNA Suite  2020b
Multipurpose development suite for Telco applications
ResultCode.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_dbms_mysql_ResultCode_hpp
10 #define anna_dbms_mysql_ResultCode_hpp
11 
12 #include <anna/dbms/ResultCode.hpp>
13 
15 
16 namespace anna {
17 
18 namespace dbms {
19 
20 namespace mysql {
21 
26 class ResultCode : public dbms::ResultCode {
27 public:
32  explicit ResultCode(st_mysql* mysql);
33 
38  explicit ResultCode(st_mysql_stmt* stmt);
39 
40 private:
41  class ErrorDecoder : public dbms::ResultCode::ErrorDecoder {
42  bool notFound(const int errorCode) const ;
43  bool successful(const int errorCode) const ;
44  bool locked(const int errorCode) const ;
45  bool lostConnection(const int errorCode) const ;
46  };
47 
48  static ErrorDecoder st_errorDecoder;
49 };
50 
51 }
52 }
53 }
54 
55 #endif
56 
Definition: ResultCode.hpp:26
Definition: ResultCode.hpp:126
bool notFound() const noexcept(false)
Definition: app.hpp:12
bool locked() const noexcept(false)
bool lostConnection() const noexcept(false)
Definition: ResultCode.hpp:29
ResultCode()
Definition: ResultCode.hpp:36
bool successful() const noexcept(false)