mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-27 15:15:52 +00:00
Update headers to use #pragma once
This commit is contained in:
committed by
Michael Legleux
parent
7bb567761c
commit
bf217345ae
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_APP_REPORTING_BACKENDFACTORY_H_INCLUDED
|
||||
#define RIPPLE_APP_REPORTING_BACKENDFACTORY_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <backend/BackendInterface.h>
|
||||
#include <backend/CassandraBackend.h>
|
||||
@@ -42,5 +41,3 @@ make_Backend(boost::asio::io_context& ioc, clio::Config const& config)
|
||||
return backend;
|
||||
}
|
||||
} // namespace Backend
|
||||
|
||||
#endif // RIPPLE_REPORTING_BACKEND_FACTORY
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_APP_REPORTING_BACKENDINTERFACE_H_INCLUDED
|
||||
#define RIPPLE_APP_REPORTING_BACKENDINTERFACE_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <ripple/ledger/ReadView.h>
|
||||
#include <backend/DBHelpers.h>
|
||||
@@ -643,4 +642,3 @@ private:
|
||||
|
||||
} // namespace Backend
|
||||
using BackendInterface = Backend::BackendInterface;
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_APP_REPORTING_CASSANDRABACKEND_H_INCLUDED
|
||||
#define RIPPLE_APP_REPORTING_CASSANDRABACKEND_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <ripple/basics/base_uint.h>
|
||||
#include <backend/BackendInterface.h>
|
||||
@@ -1258,4 +1257,3 @@ public:
|
||||
};
|
||||
|
||||
} // namespace Backend
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef CLIO_BACKEND_DBHELPERS_H_INCLUDED
|
||||
#define CLIO_BACKEND_DBHELPERS_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/basics/StringUtilities.h>
|
||||
@@ -181,4 +180,3 @@ uint256ToString(ripple::uint256 const& uint)
|
||||
}
|
||||
|
||||
static constexpr std::uint32_t rippleEpochStart = 946684800;
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef CLIO_SIMPLECACHE_H_INCLUDED
|
||||
#define CLIO_SIMPLECACHE_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <ripple/basics/base_uint.h>
|
||||
#include <ripple/basics/hardened_hash.h>
|
||||
@@ -78,4 +77,3 @@ public:
|
||||
};
|
||||
|
||||
} // namespace Backend
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef CLIO_TYPES_H_INCLUDED
|
||||
#define CLIO_TYPES_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <ripple/basics/base_uint.h>
|
||||
#include <ripple/protocol/AccountID.h>
|
||||
#include <optional>
|
||||
@@ -89,4 +89,3 @@ constexpr ripple::uint256 lastKey{
|
||||
constexpr ripple::uint256 hi192{
|
||||
"0000000000000000000000000000000000000000000000001111111111111111"};
|
||||
} // namespace Backend
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_APP_CONFIG_H_INCLUDED
|
||||
#define RIPPLE_APP_CONFIG_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <config/detail/Helpers.h>
|
||||
|
||||
@@ -385,5 +384,3 @@ public:
|
||||
};
|
||||
|
||||
} // namespace clio
|
||||
|
||||
#endif // RIPPLE_APP_CONFIG_H_INCLUDED
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_APP_CONFIG_DETAIL_H_INCLUDED
|
||||
#define RIPPLE_APP_CONFIG_DETAIL_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
#include <queue>
|
||||
@@ -144,5 +143,3 @@ typeName<double>()
|
||||
}
|
||||
|
||||
}; // namespace clio::detail
|
||||
|
||||
#endif // RIPPLE_APP_CONFIG_DETAIL_H_INCLUDED
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef RIPPLE_APP_REPORTING_ETLHELPERS_H_INCLUDED
|
||||
#define RIPPLE_APP_REPORTING_ETLHELPERS_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <ripple/basics/base_uint.h>
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
@@ -171,5 +171,3 @@ getMarkers(size_t numMarkers)
|
||||
}
|
||||
return markers;
|
||||
}
|
||||
|
||||
#endif // RIPPLE_APP_REPORTING_ETLHELPERS_H_INCLUDED
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_APP_REPORTING_ETLSOURCE_H_INCLUDED
|
||||
#define RIPPLE_APP_REPORTING_ETLSOURCE_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <backend/BackendInterface.h>
|
||||
#include <config/Config.h>
|
||||
@@ -704,5 +703,3 @@ private:
|
||||
bool
|
||||
execute(Func f, uint32_t ledgerSequence);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_APP_REPORTING_PROBINGETLSOURCE_H_INCLUDED
|
||||
#define RIPPLE_APP_REPORTING_PROBINGETLSOURCE_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/beast/core.hpp>
|
||||
@@ -92,5 +91,3 @@ private:
|
||||
ETLSourceHooks
|
||||
make_PlainHooks() noexcept;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_APP_REPORTING_REPORTINGETL_H_INCLUDED
|
||||
#define RIPPLE_APP_REPORTING_REPORTINGETL_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <ripple/ledger/ReadView.h>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
@@ -395,5 +394,3 @@ public:
|
||||
return now - (rippleEpochStart + closeTime);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_UTIL_LOGGER_H
|
||||
#define RIPPLE_UTIL_LOGGER_H
|
||||
#pragma once
|
||||
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
@@ -253,5 +252,3 @@ public:
|
||||
};
|
||||
|
||||
}; // namespace clio
|
||||
|
||||
#endif // RIPPLE_UTIL_LOGGER_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef CLIO_BUILD_INFO_H
|
||||
#define CLIO_BUILD_INFO_H
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -12,5 +11,3 @@ std::string const&
|
||||
getClioFullVersionString();
|
||||
|
||||
} // namespace Build
|
||||
|
||||
#endif // CLIO_BUILD_INFO_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RPC_COUNTERS_H
|
||||
#define RPC_COUNTERS_H
|
||||
#pragma once
|
||||
|
||||
#include <boost/json.hpp>
|
||||
#include <chrono>
|
||||
@@ -53,5 +52,3 @@ public:
|
||||
};
|
||||
|
||||
} // namespace RPC
|
||||
|
||||
#endif // RPC_COUNTERS_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef REPORTING_RPC_ERRORS_H_INCLUDED
|
||||
#define REPORTING_RPC_ERRORS_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <ripple/protocol/ErrorCodes.h>
|
||||
|
||||
@@ -236,5 +235,3 @@ makeError(
|
||||
std::optional<std::string_view> customMessage = std::nullopt);
|
||||
|
||||
} // namespace RPC
|
||||
|
||||
#endif // REPORTING_RPC_ERRORS_H_INCLUDED
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef REPORTING_HANDLERS_H_INCLUDED
|
||||
#define REPORTING_HANDLERS_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <rpc/RPC.h>
|
||||
|
||||
@@ -102,4 +101,3 @@ doServerInfo(Context const& context);
|
||||
Result
|
||||
doRandom(Context const& context);
|
||||
} // namespace RPC
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef REPORTING_RPC_H_INCLUDED
|
||||
#define REPORTING_RPC_H_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#include <backend/BackendInterface.h>
|
||||
#include <log/Logger.h>
|
||||
@@ -146,5 +145,3 @@ logDuration(Context const& ctx, T const& dur)
|
||||
}
|
||||
|
||||
} // namespace RPC
|
||||
|
||||
#endif // REPORTING_RPC_H_INCLUDED
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef XRPL_REPORTING_RPCHELPERS_H_INCLUDED
|
||||
#define XRPL_REPORTING_RPCHELPERS_H_INCLUDED
|
||||
/*
|
||||
* This file contains a variety of utility functions used when executing
|
||||
* the handlers
|
||||
@@ -272,4 +271,3 @@ computeBookChanges(
|
||||
std::vector<Backend::TransactionAndMetadata> const& transactions);
|
||||
|
||||
} // namespace RPC
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef CLIO_WORK_QUEUE_H
|
||||
#define CLIO_WORK_QUEUE_H
|
||||
#pragma once
|
||||
|
||||
#include <log/Logger.h>
|
||||
|
||||
@@ -77,5 +76,3 @@ private:
|
||||
boost::asio::io_context ioc_ = {};
|
||||
std::optional<boost::asio::io_context::work> work_{ioc_};
|
||||
};
|
||||
|
||||
#endif // CLIO_WORK_QUEUE_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef CLIO_SUBSCRIPTION_MESSAGE_H
|
||||
#define CLIO_SUBSCRIPTION_MESSAGE_H
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -36,5 +35,3 @@ public:
|
||||
return message_.size();
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CLIO_SUBSCRIPTION_MESSAGE_H
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef SUBSCRIPTION_MANAGER_H
|
||||
#define SUBSCRIPTION_MANAGER_H
|
||||
#pragma once
|
||||
|
||||
#include <backend/BackendInterface.h>
|
||||
#include <config/Config.h>
|
||||
@@ -285,5 +284,3 @@ private:
|
||||
std::unordered_map<session_ptr, std::vector<CleanupFunction>>
|
||||
cleanupFuncs_ = {};
|
||||
};
|
||||
|
||||
#endif // SUBSCRIPTION_MANAGER_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_UTIL_TAGDECORATOR_H
|
||||
#define RIPPLE_UTIL_TAGDECORATOR_H
|
||||
#pragma once
|
||||
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/json.hpp>
|
||||
@@ -259,5 +258,3 @@ public:
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
|
||||
#endif // RIPPLE_UTIL_TAGDECORATOR_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_REPORTING_DOS_GUARD_H
|
||||
#define RIPPLE_REPORTING_DOS_GUARD_H
|
||||
#pragma once
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <string>
|
||||
@@ -100,4 +99,3 @@ private:
|
||||
boost::transform_iterator(std::end(whitelist), transform)};
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_REPORTING_HTTP_BASE_SESSION_H
|
||||
#define RIPPLE_REPORTING_HTTP_BASE_SESSION_H
|
||||
#pragma once
|
||||
|
||||
#include <boost/asio/dispatch.hpp>
|
||||
#include <boost/asio/spawn.hpp>
|
||||
@@ -468,5 +467,3 @@ handle_request(
|
||||
RPC::makeError(RPC::RippledError::rpcINTERNAL))));
|
||||
}
|
||||
}
|
||||
|
||||
#endif // RIPPLE_REPORTING_HTTP_BASE_SESSION_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_REPORTING_HTTP_SESSION_H
|
||||
#define RIPPLE_REPORTING_HTTP_SESSION_H
|
||||
#pragma once
|
||||
|
||||
#include <webserver/HttpBase.h>
|
||||
|
||||
@@ -91,5 +90,3 @@ public:
|
||||
// At this point the connection is closed gracefully
|
||||
}
|
||||
};
|
||||
|
||||
#endif // RIPPLE_REPORTING_HTTP_SESSION_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef LISTENER_H
|
||||
#define LISTENER_H
|
||||
#pragma once
|
||||
|
||||
#include <log/Logger.h>
|
||||
#include <subscriptions/SubscriptionManager.h>
|
||||
@@ -369,5 +368,3 @@ make_HttpServer(
|
||||
return server;
|
||||
}
|
||||
} // namespace Server
|
||||
|
||||
#endif // LISTENER_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_REPORTING_WS_SESSION_H
|
||||
#define RIPPLE_REPORTING_WS_SESSION_H
|
||||
#pragma once
|
||||
|
||||
#include <boost/asio/dispatch.hpp>
|
||||
#include <boost/beast/core.hpp>
|
||||
@@ -210,5 +209,3 @@ private:
|
||||
->run(std::move(req_));
|
||||
}
|
||||
};
|
||||
|
||||
#endif // RIPPLE_REPORTING_WS_SESSION_H
|
||||
|
||||
@@ -1,24 +1,4 @@
|
||||
//------------------------------------------------------------------------------
|
||||
/*
|
||||
This file is part of rippled: https://github.com/ripple/rippled
|
||||
Copyright (c) 2021 Ripple Labs Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#ifndef REPORTING_SSL_H
|
||||
#define REPORTING_SSL_H
|
||||
#pragma once
|
||||
|
||||
#include <boost/asio/ssl.hpp>
|
||||
|
||||
@@ -62,5 +42,3 @@ parse_certs(const char* certFilename, const char* keyFilename)
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
||||
#endif // REPORTING_SSL_H
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_REPORTING_HTTPS_SESSION_H
|
||||
#define RIPPLE_REPORTING_HTTPS_SESSION_H
|
||||
#pragma once
|
||||
|
||||
#include <webserver/HttpBase.h>
|
||||
|
||||
@@ -126,5 +125,3 @@ public:
|
||||
// At this point the connection is closed gracefully
|
||||
}
|
||||
};
|
||||
|
||||
#endif // RIPPLE_REPORTING_HTTPS_SESSION_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_REPORTING_SSL_WS_SESSION_H
|
||||
#define RIPPLE_REPORTING_SSL_WS_SESSION_H
|
||||
#pragma once
|
||||
|
||||
#include <boost/asio/dispatch.hpp>
|
||||
#include <boost/beast/core.hpp>
|
||||
@@ -223,5 +222,3 @@ private:
|
||||
->run(std::move(req_));
|
||||
}
|
||||
};
|
||||
|
||||
#endif // RIPPLE_REPORTING_SSL_WS_SESSION_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef RIPPLE_REPORTING_WS_BASE_SESSION_H
|
||||
#define RIPPLE_REPORTING_WS_BASE_SESSION_H
|
||||
#pragma once
|
||||
|
||||
#include <backend/BackendInterface.h>
|
||||
#include <etl/ETLSource.h>
|
||||
@@ -444,5 +443,3 @@ public:
|
||||
do_read();
|
||||
}
|
||||
};
|
||||
|
||||
#endif // RIPPLE_REPORTING_WS_BASE_SESSION_H
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef CLIO_UNITTEST_FIXTURES_H
|
||||
#define CLIO_UNITTEST_FIXTURES_H
|
||||
#pragma once
|
||||
|
||||
#include <ios>
|
||||
#include <mutex>
|
||||
@@ -89,5 +88,3 @@ protected:
|
||||
boost::log::core::get()->set_logging_enabled(false);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CLIO_UNITTEST_FIXTURES_H
|
||||
|
||||
Reference in New Issue
Block a user