diff --git a/Makefile b/Makefile index 34bc31ac85b7de3b92dfdb46a6fa81262c515c28..08de983329616f18d2cdb28f6619fe95fd652454 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 2ca33ab3bf35303349d60086671989a7f96eb8f2..f56f351c75492035344fad41560f8389865f8492 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 66cec68c7da5cf4ad0ff36c2393daf0d44cb7fef..6fddd1633c935fe567cb5c7f4bf5963434da3974 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 c70dcab1d819ebdcd3a203ffb0de62d4546a47eb..f3c4d7225af594b15148a1a51f0b2a6c467c38d7 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 e75ee6669c6f2945db2c2be15f680c2f41811eb8..8d267f4a9a244b5c998970815f3bffd608980dc0 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 3d494da7ba216cd597dc770931338d3ca3ccddb4..923bcf0010b5c43a08e3dab9c44ad385c35c85b0 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 decc6cbb0a7b12a96ae4a4d9fef119cf29473126..047cad85cdff9bd283dbaf8340880e28c0e4a7fd 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 08e33c2b16843d450c3ef6c511439ac329a53817..b3730319ad0589140dba14291674daa7868333b4 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;