From 6ed2c4e0f5721759393c87ef096a63d1ac1b2ae1 Mon Sep 17 00:00:00 2001
From: Marco De Marco <demarco@oats.inaf.it>
Date: Tue, 21 Jan 2014 14:30:34 +0100
Subject: [PATCH] Makefile modified, id key not exported

---
 Makefile                | 28 +++++++++++++++-------------
 src/DBManager.h         |  2 +-
 src/PlainServer.h       |  2 +-
 src/ProtocolManager.cpp |  4 +++-
 src/ProtocolManager.h   |  2 +-
 src/SSLServer.h         |  2 +-
 src/SSLSession.h        |  2 +-
 src/Session.h           |  2 +-
 8 files changed, 24 insertions(+), 20 deletions(-)

diff --git a/Makefile b/Makefile
index 34bc31a..08de983 100644
--- a/Makefile
+++ b/Makefile
@@ -4,30 +4,32 @@ INST_NAME=test
 DEBUG_LEV=-v3
 INSTALL_DIR=/usr/local/bin
 #================================================================================
-INC_DIR=/usr/local/omniORB-4.1.7/include \
-	   /usr/local/zeromq-3.2.3/include/zmq \
-	   /usr/local/tango-8.1.2/include/tango \
-	   /usr/local/soci-3.2.1/include \
-	   /usr/local/soci-3.2.1/include/soci \
+INC_DIR=/usr/local/omniORB/include \
+	   /usr/local/zeromq/include/zmq \
+	   /usr/local/tango/include/tango \
+	   /usr/local/boost/include \
+	   /usr/local/soci/include \
+	   /usr/local/soci/include/soci \
 	   /usr/include/mysql \
-	   /usr/local/protobuf-2.5.0/include \
+	   /usr/local/protobuf/include \
 	   ./src
-LIB_DIR=/usr/local/omniORB-4.1.7/lib \
-	   /usr/local/zeromq-3.2.3/lib \
-	   /usr/local/tango-8.1.2/lib \
-	   /usr/local/soci-3.2.1/lib64 \
-	   /usr/local/protobuf-2.5.0/lib
+LIB_DIR=/usr/local/omniORB/lib \
+	   /usr/local/zeromq/lib \
+	   /usr/local/tango/lib \
+	   /usr/local/boost/lib \
+	   /usr/local/soci/lib64 \
+	   /usr/local/protobuf/lib
 #================================================================================
 CC=g++
 CXX_DEBUG_FLAGS=-g -DVERBOSE_DEBUG
 CXX_RELEASE_FLAGS=-O3
-CXX_DEFAULT_FLAGS=-c -Wall -Wextra -std=c++11 -std=gnu++11
+CXX_DEFAULT_FLAGS=-c -Wall -Wextra -std=c++0x
 LDFLAGS=-Wall -lomniORB4 -lomniDynamic4 -lCOS4 -lomnithread -ltango -llog4tango \
 	-lsoci_core -lsoci_mysql -lboost_system -lboost_thread -lboost_filesystem \
 	-lboost_date_time-mt -lprotobuf -lssl
 INC_PARM=$(foreach d, $(INC_DIR), -I$d)
 LIB_PARM=$(foreach d, $(LIB_DIR), -L$d)
-PROTOC :=/usr/local/protobuf-2.5.0/bin/protoc
+PROTOC :=/usr/local/protobuf/bin/protoc
 #================================================================================
 SRC_DIR=./src
 OBJ_DIR=./obj
diff --git a/src/DBManager.h b/src/DBManager.h
index 2ca33ab..f56f351 100644
--- a/src/DBManager.h
+++ b/src/DBManager.h
@@ -41,7 +41,7 @@ protected:
     virtual ~DBManager();
 
     class Deleter;
-    friend Deleter;
+    friend class Deleter;
     class Deleter
     {
         public:
diff --git a/src/PlainServer.h b/src/PlainServer.h
index 66cec68..6fddd16 100644
--- a/src/PlainServer.h
+++ b/src/PlainServer.h
@@ -17,7 +17,7 @@ class PlainServer : public Server
     virtual ~PlainServer();
 
     class Deleter;
-    friend Deleter;
+    friend class Deleter;
     class Deleter
     {
 	public:
diff --git a/src/ProtocolManager.cpp b/src/ProtocolManager.cpp
index c70dcab..f3c4d72 100644
--- a/src/ProtocolManager.cpp
+++ b/src/ProtocolManager.cpp
@@ -447,7 +447,9 @@ void ProtocolManager::fillRow(Response::Metadata::Row* row)
 
         std::string name = props.get_name();
 
-        if(name.compare("storage_path")==0 || name.compare("file_path")==0)
+        if(name.compare("id")==0 || 
+        	name.compare("storage_path")==0 || 
+		name.compare("file_path")==0)
         {
             #ifdef VERBOSE_DEBUG
                 INFO_STREAM << "ProtocolManager::fillRow() skipping " << name << endl;
diff --git a/src/ProtocolManager.h b/src/ProtocolManager.h
index e75ee66..8d267f4 100644
--- a/src/ProtocolManager.h
+++ b/src/ProtocolManager.h
@@ -34,7 +34,7 @@ protected:
     virtual ~ProtocolManager();
 
     class Deleter;
-    friend Deleter;
+    friend class Deleter;
     class Deleter
     {
         public:
diff --git a/src/SSLServer.h b/src/SSLServer.h
index 3d494da..923bcf0 100644
--- a/src/SSLServer.h
+++ b/src/SSLServer.h
@@ -19,7 +19,7 @@ class SSLServer : public Server
     virtual ~SSLServer();
 
     class Deleter;
-    friend Deleter;
+    friend class Deleter;
     class Deleter
     {
 	public:
diff --git a/src/SSLSession.h b/src/SSLSession.h
index decc6cb..047cad8 100644
--- a/src/SSLSession.h
+++ b/src/SSLSession.h
@@ -27,7 +27,7 @@ protected:
     virtual ~SSLSession();
 
     class Deleter;
-    friend Deleter;
+    friend class Deleter;
     class Deleter
     {
 	public:
diff --git a/src/Session.h b/src/Session.h
index 08e33c2..b373031 100644
--- a/src/Session.h
+++ b/src/Session.h
@@ -85,7 +85,7 @@ protected:
     boost::asio::io_service::strand m_strand;
 
     //Header size written on socket
-    const unsigned int HEADER_SIZE = 4;
+    static const unsigned int HEADER_SIZE = 4;
 
     //Binary buffer for read data
     std::vector<boost::uint8_t> m_readBuff;
-- 
GitLab