comparison Core/SQLite/Statement.h @ 265:9cd240cfd3a6 Orthanc-0.3.1

fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2012 11:00:50 +0100
parents f333c0398f6e
children bdd72233b105
comparison
equal deleted inserted replaced
263:3b3525dee661 265:9cd240cfd3a6
41 #include "StatementReference.h" 41 #include "StatementReference.h"
42 42
43 #include <vector> 43 #include <vector>
44 #include <stdint.h> 44 #include <stdint.h>
45 #include <boost/noncopyable.hpp> 45 #include <boost/noncopyable.hpp>
46
47 #if ORTHANC_BUILD_UNIT_TESTS == 1
46 #include <gtest/gtest_prod.h> 48 #include <gtest/gtest_prod.h>
49 #endif
47 50
48 struct sqlite3_stmt; 51 struct sqlite3_stmt;
49 52
50 53
51 namespace Orthanc 54 namespace Orthanc
66 }; 69 };
67 70
68 class Statement : public boost::noncopyable 71 class Statement : public boost::noncopyable
69 { 72 {
70 friend class Connection; 73 friend class Connection;
74
75 #if ORTHANC_BUILD_UNIT_TESTS == 1
71 FRIEND_TEST(SQLStatementTest, Run); 76 FRIEND_TEST(SQLStatementTest, Run);
72 FRIEND_TEST(SQLStatementTest, Reset); 77 FRIEND_TEST(SQLStatementTest, Reset);
78 #endif
73 79
74 private: 80 private:
75 StatementReference reference_; 81 StatementReference reference_;
76 82
77 int CheckError(int err) const; 83 int CheckError(int err) const;