1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #ifndef _SQL_WARNING_H_
- #define _SQL_WARNING_H_
- #include <stdexcept>
- #include <string>
- #include <memory>
- #include "sqlstring.h"
- namespace sql
- {
- #ifdef _WIN32
- #pragma warning (disable : 4290)
- #endif
- class SQLWarning
- {
- public:
- SQLWarning(){}
- virtual const sql::SQLString & getMessage() const = 0;
- virtual const sql::SQLString & getSQLState() const = 0;
- virtual int getErrorCode() const = 0;
- virtual const SQLWarning * getNextWarning() const = 0;
- virtual void setNextWarning(const SQLWarning * _next) = 0;
- protected:
- virtual ~SQLWarning(){};
- SQLWarning(const SQLWarning&){};
- private:
- const SQLWarning & operator = (const SQLWarning & rhs);
- };
- }
- #endif
|