THRIFT-2014 Change C++ lib includes to use <namespace/> style throughout

Patch: Randy Abernethy
This commit is contained in:
Roger Meier 2013-06-10 21:17:23 +02:00
parent ed817d0102
commit 4285ba29f2
67 changed files with 116 additions and 114 deletions

View File

@ -19,7 +19,7 @@
#ifndef _THRIFT_TDISPATCHPROCESSOR_H_
#define _THRIFT_TDISPATCHPROCESSOR_H_ 1
#include "TProcessor.h"
#include <thrift/TProcessor.h>
namespace apache { namespace thrift {

View File

@ -23,7 +23,7 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "transport/PlatformSocket.h"
#include <thrift/transport/PlatformSocket.h>
#include <stdio.h>
#include <assert.h>
@ -45,7 +45,7 @@
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_convertible.hpp>
#include "TLogging.h"
#include <thrift/TLogging.h>
/**
* Helper macros to allow function overloading even when using

View File

@ -19,7 +19,7 @@
#ifndef _THRIFT_ASYNC_TASYNCDISPATCHPROCESSOR_H_
#define _THRIFT_ASYNC_TASYNCDISPATCHPROCESSOR_H_ 1
#include "TAsyncProcessor.h"
#include <thrift/async/TAsyncProcessor.h>
namespace apache { namespace thrift { namespace async {

View File

@ -17,7 +17,7 @@
* under the License.
*/
#include "TAsyncProtocolProcessor.h"
#include <thrift/async/TAsyncProtocolProcessor.h>
using apache::thrift::transport::TBufferBase;
using apache::thrift::protocol::TProtocol;

View File

@ -20,8 +20,8 @@
#ifndef _THRIFT_TNAME_ME_H_
#define _THRIFT_TNAME_ME_H_ 1
#include "TAsyncProcessor.h"
#include "TAsyncBufferProcessor.h"
#include <thrift/async/TAsyncProcessor.h>
#include <thrift/async/TAsyncBufferProcessor.h>
#include <thrift/protocol/TProtocol.h>
namespace apache { namespace thrift { namespace async {

View File

@ -17,7 +17,7 @@
* under the License.
*/
#include "TEvhttpClientChannel.h"
#include <thrift/async/TEvhttpClientChannel.h>
#include <evhttp.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/protocol/TProtocolException.h>

View File

@ -22,7 +22,7 @@
#include <string>
#include <boost/shared_ptr.hpp>
#include "TAsyncChannel.h"
#include <thrift/async/TAsyncChannel.h>
struct event_base;
struct evhttp_connection;

View File

@ -17,8 +17,8 @@
* under the License.
*/
#include "TEvhttpServer.h"
#include "TAsyncBufferProcessor.h"
#include <thrift/async/TEvhttpServer.h>
#include <thrift/async/TAsyncBufferProcessor.h>
#include <thrift/transport/TBufferTransports.h>
#include <evhttp.h>

View File

@ -20,9 +20,9 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "Monitor.h"
#include "Exception.h"
#include "Util.h"
#include <thrift/concurrency/Monitor.h>
#include <thrift/concurrency/Exception.h>
#include <thrift/concurrency/Util.h>
#include <thrift/transport/PlatformSocket.h>
#include <assert.h>

View File

@ -20,8 +20,8 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "Mutex.h"
#include "Util.h"
#include <thrift/concurrency/Mutex.h>
#include <thrift/concurrency/Util.h>
#include <cassert>
#include <boost/thread.hpp>

View File

@ -20,8 +20,8 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "BoostThreadFactory.h"
#include "Exception.h"
#include <thrift/concurrency/BoostThreadFactory.h>
#include <thrift/concurrency/Exception.h>
#include <cassert>

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_CONCURRENCY_BOOSTTHREADFACTORY_H_
#define _THRIFT_CONCURRENCY_BOOSTTHREADFACTORY_H_ 1
#include "Thread.h"
#include <thrift/concurrency/Thread.h>
#include <boost/shared_ptr.hpp>

View File

@ -17,9 +17,9 @@
* under the License.
*/
#include "Monitor.h"
#include "Exception.h"
#include "Util.h"
#include <thrift/concurrency/Monitor.h>
#include <thrift/concurrency/Exception.h>
#include <thrift/concurrency/Util.h>
#include <thrift/transport/PlatformSocket.h>
#include <boost/scoped_ptr.hpp>

View File

@ -20,8 +20,8 @@
#ifndef _THRIFT_CONCURRENCY_MONITOR_H_
#define _THRIFT_CONCURRENCY_MONITOR_H_ 1
#include "Exception.h"
#include "Mutex.h"
#include <thrift/concurrency/Exception.h>
#include <thrift/concurrency/Mutex.h>
#include <boost/utility.hpp>

View File

@ -21,8 +21,8 @@
#include <config.h>
#endif
#include <thrift/Thrift.h>
#include "Mutex.h"
#include "Util.h"
#include <thrift/concurrency/Mutex.h>
#include <thrift/concurrency/Util.h>
#include <assert.h>
#ifdef HAVE_PTHREAD_H

View File

@ -20,8 +20,8 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "PosixThreadFactory.h"
#include "Exception.h"
#include <thrift/concurrency/PosixThreadFactory.h>
#include <thrift/concurrency/Exception.h>
#if GOOGLE_PERFTOOLS_REGISTER_THREAD
# include <google/profiler.h>

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_CONCURRENCY_POSIXTHREADFACTORY_H_
#define _THRIFT_CONCURRENCY_POSIXTHREADFACTORY_H_ 1
#include "Thread.h"
#include <thrift/concurrency/Thread.h>
#include <boost/shared_ptr.hpp>

View File

@ -20,9 +20,9 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "Monitor.h"
#include "Exception.h"
#include "Util.h"
#include <thrift/concurrency/Monitor.h>
#include <thrift/concurrency/Exception.h>
#include <thrift/concurrency/Util.h>
#include <thrift/transport/PlatformSocket.h>
#include <assert.h>

View File

@ -20,8 +20,8 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "Mutex.h"
#include "Util.h"
#include <thrift/concurrency/Mutex.h>
#include <thrift/concurrency/Util.h>
#include <cassert>
#include <chrono>

View File

@ -20,8 +20,8 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "StdThreadFactory.h"
#include "Exception.h"
#include <thrift/concurrency/StdThreadFactory.h>
#include <thrift/concurrency/Exception.h>
#include <cassert>

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_CONCURRENCY_STDTHREADFACTORY_H_
#define _THRIFT_CONCURRENCY_STDTHREADFACTORY_H_ 1
#include "Thread.h"
#include <thrift/concurrency/Thread.h>
#include <boost/shared_ptr.hpp>

View File

@ -25,7 +25,7 @@
#include <boost/weak_ptr.hpp>
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#if USE_BOOST_THREAD

View File

@ -21,10 +21,10 @@
#include <config.h>
#endif
#include "ThreadManager.h"
#include "Exception.h"
#include "Monitor.h"
#include "Util.h"
#include <thrift/concurrency/ThreadManager.h>
#include <thrift/concurrency/Exception.h>
#include <thrift/concurrency/Monitor.h>
#include <thrift/concurrency/Util.h>
#include <boost/shared_ptr.hpp>

View File

@ -23,7 +23,7 @@
#include <boost/shared_ptr.hpp>
#include <thrift/cxxfunctional.h>
#include <sys/types.h>
#include "Thread.h"
#include <thrift/concurrency/Thread.h>
namespace apache { namespace thrift { namespace concurrency {

View File

@ -17,9 +17,9 @@
* under the License.
*/
#include "TimerManager.h"
#include "Exception.h"
#include "Util.h"
#include <thrift/concurrency/TimerManager.h>
#include <thrift/concurrency/Exception.h>
#include <thrift/concurrency/Util.h>
#include <assert.h>
#include <iostream>

View File

@ -20,9 +20,9 @@
#ifndef _THRIFT_CONCURRENCY_TIMERMANAGER_H_
#define _THRIFT_CONCURRENCY_TIMERMANAGER_H_ 1
#include "Exception.h"
#include "Monitor.h"
#include "Thread.h"
#include <thrift/concurrency/Exception.h>
#include <thrift/concurrency/Monitor.h>
#include <thrift/concurrency/Thread.h>
#include <boost/shared_ptr.hpp>
#include <map>

View File

@ -21,7 +21,7 @@
#include <config.h>
#endif
#include <thrift/Thrift.h>
#include "Util.h"
#include <thrift/concurrency/Util.h>
#if defined(HAVE_SYS_TIME_H)
#include <sys/time.h>

View File

@ -17,7 +17,7 @@
* under the License.
*/
#include "PeekProcessor.h"
#include <thrift/processor/PeekProcessor.h>
using namespace apache::thrift::transport;
using namespace apache::thrift::protocol;

View File

@ -17,7 +17,7 @@
* under the License.
*/
#include "TBase64Utils.h"
#include <thrift/protocol/TBase64Utils.h>
#include <boost/static_assert.hpp>

View File

@ -20,8 +20,8 @@
#ifndef _THRIFT_PROTOCOL_TBINARYPROTOCOL_H_
#define _THRIFT_PROTOCOL_TBINARYPROTOCOL_H_ 1
#include "TProtocol.h"
#include "TVirtualProtocol.h"
#include <thrift/protocol/TProtocol.h>
#include <thrift/protocol/TVirtualProtocol.h>
#include <boost/shared_ptr.hpp>
@ -277,6 +277,6 @@ typedef TBinaryProtocolFactoryT<TTransport> TBinaryProtocolFactory;
}}} // apache::thrift::protocol
#include "TBinaryProtocol.tcc"
#include <thrift/protocol/TBinaryProtocol.tcc>
#endif // #ifndef _THRIFT_PROTOCOL_TBINARYPROTOCOL_H_

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_PROTOCOL_TBINARYPROTOCOL_TCC_
#define _THRIFT_PROTOCOL_TBINARYPROTOCOL_TCC_ 1
#include "TBinaryProtocol.h"
#include <thrift/protocol/TBinaryProtocol.h>
#include <limits>

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_PROTOCOL_TCOMPACTPROTOCOL_H_
#define _THRIFT_PROTOCOL_TCOMPACTPROTOCOL_H_ 1
#include "TVirtualProtocol.h"
#include <thrift/protocol/TVirtualProtocol.h>
#include <stack>
#include <boost/shared_ptr.hpp>
@ -284,6 +284,6 @@ typedef TCompactProtocolFactoryT<TTransport> TCompactProtocolFactory;
}}} // apache::thrift::protocol
#include "TCompactProtocol.tcc"
#include <thrift/protocol/TCompactProtocol.tcc>
#endif

View File

@ -17,7 +17,7 @@
* under the License.
*/
#include "TDebugProtocol.h"
#include <thrift/protocol/TDebugProtocol.h>
#include <cassert>
#include <cctype>

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_PROTOCOL_TDEBUGPROTOCOL_H_
#define _THRIFT_PROTOCOL_TDEBUGPROTOCOL_H_ 1
#include "TVirtualProtocol.h"
#include <thrift/protocol/TVirtualProtocol.h>
#include <boost/shared_ptr.hpp>

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_PROTOCOL_TDENSEPROTOCOL_H_
#define _THRIFT_PROTOCOL_TDENSEPROTOCOL_H_ 1
#include "TBinaryProtocol.h"
#include <thrift/protocol/TBinaryProtocol.h>
namespace apache { namespace thrift { namespace protocol {

View File

@ -17,11 +17,11 @@
* under the License.
*/
#include "TJSONProtocol.h"
#include <thrift/protocol/TJSONProtocol.h>
#include <math.h>
#include <boost/lexical_cast.hpp>
#include "TBase64Utils.h"
#include <thrift/protocol/TBase64Utils.h>
#include <thrift/transport/TTransportException.h>
using namespace apache::thrift::transport;

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_PROTOCOL_TJSONPROTOCOL_H_
#define _THRIFT_PROTOCOL_TJSONPROTOCOL_H_ 1
#include "TVirtualProtocol.h"
#include <thrift/protocol/TVirtualProtocol.h>
#include <stack>

View File

@ -17,8 +17,8 @@
* under the License.
*/
#include "TQTcpServer.h"
#include "TQIODeviceTransport.h"
#include <thrift/qt/TQTcpServer.h>
#include <thrift/qt/TQIODeviceTransport.h>
#include <QTcpSocket>

View File

@ -23,7 +23,7 @@
#include <config.h>
#endif
#include "TNonblockingServer.h"
#include <thrift/server/TNonblockingServer.h>
#include <thrift/concurrency/Exception.h>
#include <thrift/transport/TSocket.h>
#include <thrift/concurrency/PlatformThreadFactory.h>

View File

@ -21,7 +21,7 @@
#define _THRIFT_TRANSPORT_TBUFFERTRANSPORTS_H_ 1
#include <cstring>
#include "boost/scoped_array.hpp"
#include <boost/scoped_array.hpp>
#include <thrift/transport/TTransport.h>
#include <thrift/transport/TVirtualTransport.h>

View File

@ -25,8 +25,8 @@
#include <sys/time.h>
#endif
#include "TTransport.h"
#include "TVirtualTransport.h"
#include <thrift/transport/TTransport.h>
#include <thrift/transport/TVirtualTransport.h>
namespace apache { namespace thrift { namespace transport {

View File

@ -21,9 +21,9 @@
#include "config.h"
#endif
#include "TFileTransport.h"
#include "TTransportUtils.h"
#include "PlatformSocket.h"
#include <thrift/transport/TFileTransport.h>
#include <thrift/transport/TTransportUtils.h>
#include <thrift/transport/PlatformSocket.h>
#include <thrift/concurrency/FunctionRunner.h>
#ifdef HAVE_SYS_TIME_H

View File

@ -21,7 +21,7 @@
#define _THRIFT_TRANSPORT_THTTPTRANSPORT_H_ 1
#include <thrift/transport/TBufferTransports.h>
#include "TVirtualTransport.h"
#include <thrift/transport/TVirtualTransport.h>
namespace apache { namespace thrift { namespace transport {

View File

@ -17,8 +17,8 @@
* under the License.
*/
#include "TTransportException.h"
#include "TPipe.h"
#include <thrift/transport/TTransportException.h>
#include <thrift/transport/TPipe.h>
namespace apache { namespace thrift { namespace transport {

View File

@ -23,7 +23,7 @@
#include <thrift/transport/TTransport.h>
#include <thrift/transport/TVirtualTransport.h>
#ifndef _WIN32
# include "TSocket.h"
# include <thrift/transport/TSocket.h>
#endif
namespace apache { namespace thrift { namespace transport {

View File

@ -22,8 +22,8 @@
#endif
#include <cstring>
#include "TPipe.h"
#include "TPipeServer.h"
#include <thrift/transport/TPipe.h>
#include <thrift/transport/TPipeServer.h>
#include <boost/shared_ptr.hpp>
#ifdef _WIN32
# include <AccCtrl.h>

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_TRANSPORT_TSERVERWINPIPES_H_
#define _THRIFT_TRANSPORT_TSERVERWINPIPES_H_ 1
#include "TServerTransport.h"
#include <thrift/transport/TServerTransport.h>
#include <boost/shared_ptr.hpp>
#ifndef _WIN32
# include "TServerSocket.h"

View File

@ -17,8 +17,8 @@
* under the License.
*/
#include "TSSLServerSocket.h"
#include "TSSLSocket.h"
#include <thrift/transport/TSSLServerSocket.h>
#include <thrift/transport/TSSLSocket.h>
namespace apache { namespace thrift { namespace transport {

View File

@ -21,7 +21,7 @@
#define _THRIFT_TRANSPORT_TSSLSERVERSOCKET_H_ 1
#include <boost/shared_ptr.hpp>
#include "TServerSocket.h"
#include <thrift/transport/TServerSocket.h>
namespace apache { namespace thrift { namespace transport {

View File

@ -36,8 +36,8 @@
#include <openssl/ssl.h>
#include <openssl/x509v3.h>
#include <thrift/concurrency/Mutex.h>
#include "TSSLSocket.h"
#include "PlatformSocket.h"
#include <thrift/transport/TSSLSocket.h>
#include <thrift/transport/PlatformSocket.h>
#define OPENSSL_VERSION_NO_THREAD_ID 0x10000000L

View File

@ -24,7 +24,7 @@
#include <boost/shared_ptr.hpp>
#include <openssl/ssl.h>
#include <thrift/concurrency/Mutex.h>
#include "TSocket.h"
#include <thrift/transport/TSocket.h>
namespace apache { namespace thrift { namespace transport {

View File

@ -43,9 +43,9 @@
#include <unistd.h>
#endif
#include "TSocket.h"
#include "TServerSocket.h"
#include "PlatformSocket.h"
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/PlatformSocket.h>
#include <boost/shared_ptr.hpp>
#ifndef AF_LOCAL

View File

@ -20,8 +20,8 @@
#ifndef _THRIFT_TRANSPORT_TSERVERSOCKET_H_
#define _THRIFT_TRANSPORT_TSERVERSOCKET_H_ 1
#include "TServerTransport.h"
#include "PlatformSocket.h"
#include <thrift/transport/TServerTransport.h>
#include <thrift/transport/PlatformSocket.h>
#include <boost/shared_ptr.hpp>
namespace apache { namespace thrift { namespace transport {

View File

@ -20,8 +20,8 @@
#ifndef _THRIFT_TRANSPORT_TSERVERTRANSPORT_H_
#define _THRIFT_TRANSPORT_TSERVERTRANSPORT_H_ 1
#include "TTransport.h"
#include "TTransportException.h"
#include <thrift/transport/TTransport.h>
#include <thrift/transport/TTransportException.h>
#include <boost/shared_ptr.hpp>
namespace apache { namespace thrift { namespace transport {

View File

@ -20,7 +20,7 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "TSimpleFileTransport.h"
#include <thrift/transport/TSimpleFileTransport.h>
#include <sys/types.h>
#ifdef HAVE_SYS_STAT_H

View File

@ -20,7 +20,7 @@
#ifndef _THRIFT_TRANSPORT_TSIMPLEFILETRANSPORT_H_
#define _THRIFT_TRANSPORT_TSIMPLEFILETRANSPORT_H_ 1
#include "TFDTransport.h"
#include <thrift/transport/TFDTransport.h>
namespace apache { namespace thrift { namespace transport {

View File

@ -42,9 +42,9 @@
#include <fcntl.h>
#include <thrift/concurrency/Monitor.h>
#include "TSocket.h"
#include "TTransportException.h"
#include "PlatformSocket.h"
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransportException.h>
#include <thrift/transport/PlatformSocket.h>
#ifndef SOCKOPT_CAST_T
# ifndef _WIN32

View File

@ -22,10 +22,10 @@
#include <string>
#include "TTransport.h"
#include "TVirtualTransport.h"
#include "TServerSocket.h"
#include "PlatformSocket.h"
#include <thrift/transport/TTransport.h>
#include <thrift/transport/TVirtualTransport.h>
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/PlatformSocket.h>
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>

View File

@ -24,7 +24,7 @@
#include <algorithm>
#include <iostream>
#include "TSocketPool.h"
#include <thrift/transport/TSocketPool.h>
namespace apache { namespace thrift { namespace transport {

View File

@ -21,7 +21,7 @@
#define _THRIFT_TRANSPORT_TSOCKETPOOL_H_ 1
#include <vector>
#include "TSocket.h"
#include <thrift/transport/TSocket.h>
namespace apache { namespace thrift { namespace transport {

View File

@ -17,7 +17,7 @@
* under the License.
*/
#include "GetTimeOfDay.h"
#include <thrift/windows/GetTimeOfDay.h>
#include "config.h"
// win32

View File

@ -27,7 +27,7 @@
* under the License.
*/
#include "SocketPair.h"
#include <thrift/windows/SocketPair.h>
// stl
#include <string.h>

View File

@ -17,7 +17,7 @@
* under the License.
*/
#include "TWinsockSingleton.h"
#include <thrift/windows/TWinsockSingleton.h>
// boost
#include <boost/assert.hpp>

View File

@ -28,7 +28,7 @@
#error This is a MSVC header only.
#endif
#include <config.h>
#include "config.h"
// boost
#include <boost/noncopyable.hpp>

View File

@ -17,7 +17,7 @@
* under the License.
*/
#include "WinFcntl.h"
#include <thrift/windows/WinFcntl.h>
int thrift_fcntl(THRIFT_SOCKET fd, int cmd, int flags)
{

View File

@ -40,7 +40,9 @@ struct thrift_pollfd {
};
#endif
extern "C" {
int thrift_fcntl(THRIFT_SOCKET fd, int cmd, int flags);
int thrift_poll(THRIFT_POLLFD *fdArray, ULONG nfds, INT timeout);
}
#endif // _THRIFT_WINDOWS_FCNTL_H_

View File

@ -75,11 +75,11 @@ typedef boost::uint8_t uint8_t;
#endif
#include <thrift/transport/PlatformSocket.h>
#include "GetTimeOfDay.h"
#include "Operators.h"
#include "TWinsockSingleton.h"
#include "WinFcntl.h"
#include "SocketPair.h"
#include <thrift/windows/GetTimeOfDay.h>
#include <thrift/windows/Operators.h>
#include <thrift/windows/TWinsockSingleton.h>
#include <thrift/windows/WinFcntl.h>
#include <thrift/windows/SocketPair.h>
// windows
#include <Winsock2.h>