mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Consolidate includes into group headers
This commit is contained in:
@@ -1594,6 +1594,8 @@
|
|||||||
<ClInclude Include="..\..\modules\ripple_basics\containers\ripple_TaggedCache.h" />
|
<ClInclude Include="..\..\modules\ripple_basics\containers\ripple_TaggedCache.h" />
|
||||||
<ClInclude Include="..\..\modules\ripple_basics\ripple_basics.h" />
|
<ClInclude Include="..\..\modules\ripple_basics\ripple_basics.h" />
|
||||||
<ClInclude Include="..\..\modules\ripple_basics\system\ripple_BoostIncludes.h" />
|
<ClInclude Include="..\..\modules\ripple_basics\system\ripple_BoostIncludes.h" />
|
||||||
|
<ClInclude Include="..\..\modules\ripple_basics\system\ripple_OpenSSLIncludes.h" />
|
||||||
|
<ClInclude Include="..\..\modules\ripple_basics\system\ripple_StandardIncludes.h" />
|
||||||
<ClInclude Include="..\..\modules\ripple_basics\types\ripple_HashMaps.h" />
|
<ClInclude Include="..\..\modules\ripple_basics\types\ripple_HashMaps.h" />
|
||||||
<ClInclude Include="..\..\modules\ripple_basics\types\ripple_BasicTypes.h" />
|
<ClInclude Include="..\..\modules\ripple_basics\types\ripple_BasicTypes.h" />
|
||||||
<ClInclude Include="..\..\modules\ripple_basics\types\ripple_UInt256.h" />
|
<ClInclude Include="..\..\modules\ripple_basics\types\ripple_UInt256.h" />
|
||||||
|
|||||||
@@ -1791,6 +1791,12 @@
|
|||||||
<ClInclude Include="..\..\modules\ripple_basics\system\ripple_BoostIncludes.h">
|
<ClInclude Include="..\..\modules\ripple_basics\system\ripple_BoostIncludes.h">
|
||||||
<Filter>1. Modules\ripple_basics\system</Filter>
|
<Filter>1. Modules\ripple_basics\system</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\modules\ripple_basics\system\ripple_StandardIncludes.h">
|
||||||
|
<Filter>1. Modules\ripple_basics\system</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\modules\ripple_basics\system\ripple_OpenSSLIncludes.h">
|
||||||
|
<Filter>1. Modules\ripple_basics\system</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\..\src\cpp\protobuf\src\google\protobuf\descriptor.proto">
|
<None Include="..\..\src\cpp\protobuf\src\google\protobuf\descriptor.proto">
|
||||||
|
|||||||
@@ -12,22 +12,6 @@
|
|||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <bitset>
|
|
||||||
#include <cassert>
|
|
||||||
#include <deque>
|
|
||||||
#include <fstream>
|
|
||||||
#include <iostream>
|
|
||||||
#include <list>
|
|
||||||
#include <map>
|
|
||||||
#include <queue>
|
|
||||||
#include <set>
|
|
||||||
#include <stack>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
// VFALCO NOTE Holy smokes...that's a lot of boost!!!
|
// VFALCO NOTE Holy smokes...that's a lot of boost!!!
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
#include <boost/algorithm/string/predicate.hpp>
|
||||||
@@ -69,15 +53,6 @@
|
|||||||
#include <boost/unordered_set.hpp>
|
#include <boost/unordered_set.hpp>
|
||||||
#include <boost/weak_ptr.hpp>
|
#include <boost/weak_ptr.hpp>
|
||||||
|
|
||||||
#include <openssl/buffer.h>
|
|
||||||
#include <openssl/ec.h>
|
|
||||||
#include <openssl/evp.h>
|
|
||||||
#include <openssl/md5.h>
|
|
||||||
#include <openssl/ripemd.h>
|
|
||||||
#include <openssl/sha.h>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "../modules/ripple_sqlite/ripple_sqlite.h" // for SqliteDatabase.cpp
|
#include "../modules/ripple_sqlite/ripple_sqlite.h" // for SqliteDatabase.cpp
|
||||||
|
|
||||||
#include "../modules/ripple_core/ripple_core.h"
|
#include "../modules/ripple_core/ripple_core.h"
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
|
|
||||||
#include "ripple_basics.h"
|
#include "ripple_basics.h"
|
||||||
|
|
||||||
#include <fstream>
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
// VFALCO TODO Rewrite Sustain to use beast::Process
|
// VFALCO TODO Rewrite Sustain to use beast::Process
|
||||||
//
|
//
|
||||||
// These are for Sustain Linux variants
|
// These are for Sustain Linux variants
|
||||||
@@ -28,12 +25,6 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
|
||||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
|
||||||
#include <boost/test/unit_test.hpp>
|
|
||||||
#include <boost/asio.hpp> // VFALCO NOTE just for parseIpPort (!)
|
|
||||||
#include <boost/regex.hpp>
|
|
||||||
|
|
||||||
//#include <boost/test/included/unit_test.hpp>
|
//#include <boost/test/included/unit_test.hpp>
|
||||||
|
|
||||||
// VFALCO TODO Replace OpenSSL randomness with a dependency-free implementation
|
// VFALCO TODO Replace OpenSSL randomness with a dependency-free implementation
|
||||||
|
|||||||
@@ -20,41 +20,11 @@
|
|||||||
#ifndef RIPPLE_BASICS_RIPPLEHEADER
|
#ifndef RIPPLE_BASICS_RIPPLEHEADER
|
||||||
#define RIPPLE_BASICS_RIPPLEHEADER
|
#define RIPPLE_BASICS_RIPPLEHEADER
|
||||||
|
|
||||||
#include <algorithm>
|
#include "system/ripple_StandardIncludes.h"
|
||||||
#include <cassert>
|
|
||||||
#include <climits>
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cstring>
|
|
||||||
#include <ctime>
|
|
||||||
#include <functional>
|
|
||||||
#include <limits>
|
|
||||||
#include <list>
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include <boost/version.hpp>
|
|
||||||
#if BOOST_VERSION < 104700
|
|
||||||
#error Ripple requires Boost version 1.47 or later
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "system/ripple_BoostIncludes.h"
|
#include "system/ripple_BoostIncludes.h"
|
||||||
|
|
||||||
// VFALCO TODO Move all boost includes into ripple_BoostHeaders.h
|
#include "system/ripple_OpenSSLIncludes.h"
|
||||||
//
|
|
||||||
#include <boost/bind.hpp>
|
|
||||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
|
||||||
#include <boost/foreach.hpp>
|
|
||||||
#include <boost/format.hpp>
|
|
||||||
#include <boost/function.hpp>
|
|
||||||
#include <boost/functional/hash.hpp>
|
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <boost/make_shared.hpp>
|
|
||||||
#include <boost/ref.hpp>
|
|
||||||
#include <boost/shared_ptr.hpp>
|
|
||||||
#include <boost/thread/mutex.hpp>
|
|
||||||
#include <boost/thread/recursive_mutex.hpp>
|
|
||||||
#include <boost/unordered_map.hpp>
|
|
||||||
|
|
||||||
// ByteOrder
|
// ByteOrder
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
@@ -67,10 +37,6 @@
|
|||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <openssl/dh.h> // for DiffieHellmanUtil
|
|
||||||
#include <openssl/ripemd.h> // For HashUtilities
|
|
||||||
#include <openssl/sha.h> // For HashUtilities
|
|
||||||
|
|
||||||
#include "BeastConfig.h" // Must come before any Beast includes
|
#include "BeastConfig.h" // Must come before any Beast includes
|
||||||
|
|
||||||
#include "modules/beast_core/beast_core.h"
|
#include "modules/beast_core/beast_core.h"
|
||||||
|
|||||||
@@ -16,18 +16,41 @@
|
|||||||
// A long term goal is to reduce and hopefully eliminate the usage of boost.
|
// A long term goal is to reduce and hopefully eliminate the usage of boost.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include <boost/version.hpp>
|
||||||
|
|
||||||
|
#if BOOST_VERSION < 104700
|
||||||
|
# error Ripple requires Boost version 1.47 or later
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// This is better than setting it in some Makefile or IDE Project file.
|
||||||
|
//
|
||||||
#define BOOST_FILESYSTEM_NO_DEPRECATED
|
#define BOOST_FILESYSTEM_NO_DEPRECATED
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Boost Unit Test Framework
|
|
||||||
|
|
||||||
#define BOOST_TEST_NO_LIB
|
#define BOOST_TEST_NO_LIB
|
||||||
#define BOOST_TEST_ALTERNATIVE_INIT_API
|
#define BOOST_TEST_ALTERNATIVE_INIT_API
|
||||||
#define BOOST_TEST_NO_MAIN
|
#define BOOST_TEST_NO_MAIN
|
||||||
|
|
||||||
|
#include <boost/algorithm/string.hpp>
|
||||||
|
#include <boost/asio.hpp>
|
||||||
|
#include <boost/asio/ssl.hpp>
|
||||||
|
#include <boost/bind.hpp>
|
||||||
|
#include <boost/cstdint.hpp>
|
||||||
|
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||||
|
#include <boost/enable_shared_from_this.hpp>
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
#include <boost/foreach.hpp>
|
||||||
|
#include <boost/format.hpp>
|
||||||
|
#include <boost/function.hpp>
|
||||||
|
#include <boost/functional/hash.hpp>
|
||||||
|
#include <boost/lexical_cast.hpp>
|
||||||
|
#include <boost/make_shared.hpp>
|
||||||
|
#include <boost/ptr_container/ptr_vector.hpp> // VFALCO NOTE this looks like junk
|
||||||
|
#include <boost/ref.hpp>
|
||||||
|
#include <boost/regex.hpp>
|
||||||
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
|
#include <boost/thread/condition_variable.hpp>
|
||||||
|
#include <boost/thread/mutex.hpp>
|
||||||
|
#include <boost/thread/recursive_mutex.hpp>
|
||||||
|
#include <boost/unordered_map.hpp>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
23
modules/ripple_basics/system/ripple_OpenSSLIncludes.h
Normal file
23
modules/ripple_basics/system/ripple_OpenSSLIncludes.h
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
/*
|
||||||
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
||||||
|
*/
|
||||||
|
//==============================================================================
|
||||||
|
|
||||||
|
#ifndef RIPPLE_OPENSSLINCLUDES_RIPPLEHEADER
|
||||||
|
#define RIPPLE_OPENSSLINCLUDES_RIPPLEHEADER
|
||||||
|
|
||||||
|
// All OpenSSL includes we need
|
||||||
|
|
||||||
|
#include <openssl/bn.h>
|
||||||
|
#include <openssl/buffer.h>
|
||||||
|
#include <openssl/dh.h>
|
||||||
|
#include <openssl/ec.h>
|
||||||
|
#include <openssl/ecdsa.h>
|
||||||
|
#include <openssl/evp.h>
|
||||||
|
#include <openssl/md5.h>
|
||||||
|
#include <openssl/obj_mac.h>
|
||||||
|
#include <openssl/ripemd.h>
|
||||||
|
#include <openssl/sha.h>
|
||||||
|
|
||||||
|
#endif
|
||||||
35
modules/ripple_basics/system/ripple_StandardIncludes.h
Normal file
35
modules/ripple_basics/system/ripple_StandardIncludes.h
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
/*
|
||||||
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
||||||
|
*/
|
||||||
|
//==============================================================================
|
||||||
|
|
||||||
|
#ifndef RIPPLE_STANDARDINCLUDES_RIPPLEHEADER
|
||||||
|
#define RIPPLE_STANDARDINCLUDES_RIPPLEHEADER
|
||||||
|
|
||||||
|
// All required Standard C++ Library includes
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <bitset>
|
||||||
|
#include <cassert>
|
||||||
|
#include <climits>
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstring>
|
||||||
|
#include <ctime>
|
||||||
|
#include <deque>
|
||||||
|
#include <fstream>
|
||||||
|
#include <functional>
|
||||||
|
#include <iostream>
|
||||||
|
#include <limits>
|
||||||
|
#include <list>
|
||||||
|
#include <map>
|
||||||
|
#include <queue>
|
||||||
|
#include <set>
|
||||||
|
#include <set>
|
||||||
|
#include <sstream>
|
||||||
|
#include <stack>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
#include <boost/test/unit_test.hpp>
|
|
||||||
#include <boost/thread.hpp>
|
#include <boost/thread.hpp>
|
||||||
|
|
||||||
namespace ripple
|
namespace ripple
|
||||||
|
|||||||
@@ -22,16 +22,9 @@
|
|||||||
#define RIPPLE_CORE_RIPPLEHEADER
|
#define RIPPLE_CORE_RIPPLEHEADER
|
||||||
|
|
||||||
#include "../ripple_basics/ripple_basics.h"
|
#include "../ripple_basics/ripple_basics.h"
|
||||||
|
|
||||||
#include "../ripple_data/ripple_data.h"
|
#include "../ripple_data/ripple_data.h"
|
||||||
|
|
||||||
#include <set>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#include <boost/asio.hpp>
|
|
||||||
#include <boost/asio/ssl.hpp>
|
|
||||||
#include <boost/thread/condition_variable.hpp>
|
|
||||||
#include <boost/thread/mutex.hpp>
|
|
||||||
|
|
||||||
namespace ripple
|
namespace ripple
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#include <boost/range/adaptor/copied.hpp>
|
#include <boost/range/adaptor/copied.hpp>
|
||||||
#include <boost/regex.hpp>
|
#include <boost/regex.hpp>
|
||||||
#include <boost/unordered_map.hpp>
|
#include <boost/unordered_map.hpp>
|
||||||
#include <boost/test/unit_test.hpp>
|
|
||||||
#include <boost/thread/mutex.hpp>
|
#include <boost/thread/mutex.hpp>
|
||||||
|
|
||||||
#include <openssl/ec.h>
|
#include <openssl/ec.h>
|
||||||
|
|||||||
@@ -20,28 +20,6 @@
|
|||||||
#ifndef RIPPLE_DATA_RIPPLEHEADER
|
#ifndef RIPPLE_DATA_RIPPLEHEADER
|
||||||
#define RIPPLE_DATA_RIPPLEHEADER
|
#define RIPPLE_DATA_RIPPLEHEADER
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <cassert>
|
|
||||||
#include <cstdio>
|
|
||||||
#include <list>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include <string>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include <boost/cstdint.hpp>
|
|
||||||
#include <boost/enable_shared_from_this.hpp>
|
|
||||||
#include <boost/functional/hash.hpp>
|
|
||||||
#include <boost/shared_ptr.hpp>
|
|
||||||
#include <boost/ptr_container/ptr_vector.hpp> // VFALCO NOTE this looks like junk
|
|
||||||
|
|
||||||
#include <openssl/bn.h>
|
|
||||||
#include <openssl/ec.h>
|
|
||||||
#include <openssl/ecdsa.h>
|
|
||||||
#include <openssl/obj_mac.h>
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// VFALCO TODO try to reduce these dependencies
|
// VFALCO TODO try to reduce these dependencies
|
||||||
#include "../ripple_basics/ripple_basics.h"
|
#include "../ripple_basics/ripple_basics.h"
|
||||||
|
|
||||||
|
|||||||
@@ -20,12 +20,7 @@
|
|||||||
#ifndef RIPPLE_JSON_RIPPLEHEADER
|
#ifndef RIPPLE_JSON_RIPPLEHEADER
|
||||||
#define RIPPLE_JSON_RIPPLEHEADER
|
#define RIPPLE_JSON_RIPPLEHEADER
|
||||||
|
|
||||||
#include <deque>
|
#include "../modules/ripple_basics/ripple_basics.h"
|
||||||
#include <stack>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include "BeastConfig.h"
|
|
||||||
|
|
||||||
#include "json/json_config.h" // Needed before these cpptl includes
|
#include "json/json_config.h" // Needed before these cpptl includes
|
||||||
|
|
||||||
|
|||||||
@@ -34,12 +34,6 @@
|
|||||||
//
|
//
|
||||||
#include "../modules/ripple_basics/ripple_basics.h"
|
#include "../modules/ripple_basics/ripple_basics.h"
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include <boost/asio.hpp>
|
|
||||||
#include <boost/asio/ssl.hpp>
|
|
||||||
#include <boost/bind.hpp>
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "websocket/src/common.hpp"
|
#include "websocket/src/common.hpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user