summaryrefslogtreecommitdiff
path: root/project2/sql
diff options
context:
space:
mode:
Diffstat (limited to 'project2/sql')
-rw-r--r--project2/sql/Jamfile.jam7
-rw-r--r--project2/sql/connectionLoader.h5
-rw-r--r--project2/sql/pch.hpp35
-rw-r--r--project2/sql/rdbmsDataSource.cpp1
-rw-r--r--project2/sql/sqlCache.cpp1
-rw-r--r--project2/sql/sqlCheck.cpp1
-rw-r--r--project2/sql/sqlHandleAsVariableType.cpp1
-rw-r--r--project2/sql/sqlMergeTask.cpp1
-rw-r--r--project2/sql/sqlRows.cpp1
-rw-r--r--project2/sql/sqlTask.cpp1
-rw-r--r--project2/sql/sqlVariableBinder.cpp1
-rw-r--r--project2/sql/sqlWriter.cpp1
-rw-r--r--project2/sql/tablepatch.cpp1
13 files changed, 57 insertions, 0 deletions
diff --git a/project2/sql/Jamfile.jam b/project2/sql/Jamfile.jam
index b05fd34..779aba3 100644
--- a/project2/sql/Jamfile.jam
+++ b/project2/sql/Jamfile.jam
@@ -24,7 +24,14 @@ obj sql-modPQ :
<library>../../libpqpp//pqpp
;
+cpp-pch pch : pch.hpp :
+ <include>../../libmisc
+ <include>../../libdbpp
+ <library>libxmlpp
+ <library>../common//p2common
+ ;
lib p2sql :
+ pch
sqlCheck.cpp sqlWriter.cpp sqlTask.cpp sqlMergeTask.cpp sqlRows.cpp sqlCache.cpp sqlVariableBinder.cpp tablepatch.cpp rdbmsDataSource.cpp
sqlHandleAsVariableType.cpp
../../libdbpp//dbpp
diff --git a/project2/sql/connectionLoader.h b/project2/sql/connectionLoader.h
index 841b425..eabf28b 100644
--- a/project2/sql/connectionLoader.h
+++ b/project2/sql/connectionLoader.h
@@ -1,3 +1,6 @@
+#ifndef CONNECTIONLOADER_H
+#define CONNECTIONLOADER_H
+
#include "xmlObjectLoader.h"
#include "../libdbpp/connection.h"
@@ -17,3 +20,5 @@ class ConnectionLoaderImpl : public ConnectionLoader {
}
};
+#endif
+
diff --git a/project2/sql/pch.hpp b/project2/sql/pch.hpp
new file mode 100644
index 0000000..f009f1c
--- /dev/null
+++ b/project2/sql/pch.hpp
@@ -0,0 +1,35 @@
+#ifdef BOOST_BUILD_PCH_ENABLED
+#ifndef SQL_PCH
+#define SQL_PCH
+
+#include "cache.h"
+#include "column.h"
+#include "columns.h"
+#include "command.h"
+#include "commonObjects.h"
+#include "connectionLoader.h"
+#include "exceptions.h"
+#include "iHaveParameters.h"
+#include "logger.h"
+#include "modifycommand.h"
+#include "rdbmsDataSource.h"
+#include "rowProcessor.h"
+#include "rowSet.h"
+#include "selectcommand.h"
+#include "sqlHandleAsVariableType.h"
+#include "sqlVariableBinder.h"
+#include "sqlWriter.h"
+#include "variables.h"
+#include "xmlObjectLoader.h"
+#include <boost/bind.hpp>
+#include <boost/foreach.hpp>
+#include <boost/program_options.hpp>
+#include <buffer.h>
+#include <column.h>
+#include <errno.h>
+#include <libxml++/nodes/textnode.h>
+#include <stdexcept>
+
+#endif
+#endif
+
diff --git a/project2/sql/rdbmsDataSource.cpp b/project2/sql/rdbmsDataSource.cpp
index dac6cb1..77d6fbf 100644
--- a/project2/sql/rdbmsDataSource.cpp
+++ b/project2/sql/rdbmsDataSource.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "rdbmsDataSource.h"
#include "connectionLoader.h"
#include <libxml++/nodes/textnode.h>
diff --git a/project2/sql/sqlCache.cpp b/project2/sql/sqlCache.cpp
index 13bc23d..44b4399 100644
--- a/project2/sql/sqlCache.cpp
+++ b/project2/sql/sqlCache.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "cache.h"
#include "sqlVariableBinder.h"
#include "sqlHandleAsVariableType.h"
diff --git a/project2/sql/sqlCheck.cpp b/project2/sql/sqlCheck.cpp
index d86eb3b..d6e0651 100644
--- a/project2/sql/sqlCheck.cpp
+++ b/project2/sql/sqlCheck.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "sqlCheck.h"
#include "xmlObjectLoader.h"
#include "selectcommand.h"
diff --git a/project2/sql/sqlHandleAsVariableType.cpp b/project2/sql/sqlHandleAsVariableType.cpp
index f084a14..e628c29 100644
--- a/project2/sql/sqlHandleAsVariableType.cpp
+++ b/project2/sql/sqlHandleAsVariableType.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "sqlHandleAsVariableType.h"
#include <boost/date_time/posix_time/posix_time.hpp>
diff --git a/project2/sql/sqlMergeTask.cpp b/project2/sql/sqlMergeTask.cpp
index 09657f8..fd9ae96 100644
--- a/project2/sql/sqlMergeTask.cpp
+++ b/project2/sql/sqlMergeTask.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "sqlMergeTask.h"
#include "columns.h"
#include "commonObjects.h"
diff --git a/project2/sql/sqlRows.cpp b/project2/sql/sqlRows.cpp
index 6e506d7..ed2d71b 100644
--- a/project2/sql/sqlRows.cpp
+++ b/project2/sql/sqlRows.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "sqlRows.h"
#include "sqlHandleAsVariableType.h"
#include "rowProcessor.h"
diff --git a/project2/sql/sqlTask.cpp b/project2/sql/sqlTask.cpp
index 3a1d334..63f73a9 100644
--- a/project2/sql/sqlTask.cpp
+++ b/project2/sql/sqlTask.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "sqlTask.h"
#include <boost/foreach.hpp>
#include "xmlObjectLoader.h"
diff --git a/project2/sql/sqlVariableBinder.cpp b/project2/sql/sqlVariableBinder.cpp
index 23c24f2..169fe2c 100644
--- a/project2/sql/sqlVariableBinder.cpp
+++ b/project2/sql/sqlVariableBinder.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "sqlVariableBinder.h"
#include "command.h"
#include "variables.h"
diff --git a/project2/sql/sqlWriter.cpp b/project2/sql/sqlWriter.cpp
index 88d9801..90de82f 100644
--- a/project2/sql/sqlWriter.cpp
+++ b/project2/sql/sqlWriter.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "sqlWriter.h"
#include <boost/foreach.hpp>
#include "sqlVariableBinder.h"
diff --git a/project2/sql/tablepatch.cpp b/project2/sql/tablepatch.cpp
index f87f60e..8443c7b 100644
--- a/project2/sql/tablepatch.cpp
+++ b/project2/sql/tablepatch.cpp
@@ -1,3 +1,4 @@
+#include <pch.hpp>
#include "tablepatch.h"
#include <stdio.h>
#include <misc.h>