mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Reorganize beast modules and files
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
#ifndef RIPPLE_VALIDATORS_CANCELCALLBACKS_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_CANCELCALLBACKS_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
// Dummy CancelCallback that does nothing
|
||||
//
|
||||
@@ -49,6 +49,7 @@ private:
|
||||
bool m_interrupted;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef RIPPLE_VALIDATORS_CHOSENLIST_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_CHOSENLIST_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
class ChosenList : public SharedObject
|
||||
{
|
||||
@@ -59,6 +59,7 @@ private:
|
||||
MapType m_map;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef RIPPLE_VALIDATORS_LOGIC_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_LOGIC_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
// Tunable constants
|
||||
enum
|
||||
@@ -400,6 +400,7 @@ public:
|
||||
//----------------------------------------------------------------------
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -84,8 +84,8 @@ What determines that a validator is good?
|
||||
the behavior is measured.
|
||||
*/
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
class ManagerImp
|
||||
: public Manager
|
||||
@@ -180,7 +180,7 @@ public:
|
||||
addStaticSource (SourceFile::New (file));
|
||||
}
|
||||
|
||||
void addURL (UniformResourceLocator const& url)
|
||||
void addURL (URL const& url)
|
||||
{
|
||||
addSource (SourceURL::New (url));
|
||||
}
|
||||
@@ -308,3 +308,4 @@ Validators::Manager* Validators::Manager::New (Stoppable& parent, Journal journa
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
Source::Result::Result ()
|
||||
: success (false)
|
||||
@@ -21,3 +21,4 @@ void Source::Result::swapWith (Result& other)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef RIPPLE_VALIDATORS_SOURCEDESC_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_SOURCEDESC_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
/** Additional state information associated with a Source. */
|
||||
struct SourceDesc
|
||||
@@ -52,6 +52,7 @@ struct SourceDesc
|
||||
|
||||
typedef DynamicList <SourceDesc> SourcesType;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
class SourceFileImp : public SourceFile
|
||||
{
|
||||
@@ -56,3 +56,4 @@ SourceFile* SourceFile::New (File const& file)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef RIPPLE_VALIDATORS_SOURCEFILE_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_SOURCEFILE_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
/** Provides validators from a text file.
|
||||
Typically this will come from a local configuration file.
|
||||
@@ -19,6 +19,7 @@ public:
|
||||
static SourceFile* New (File const& path);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
class SourceStringsImp : public SourceStrings
|
||||
{
|
||||
@@ -70,3 +70,4 @@ SourceStrings* SourceStrings::New (
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef RIPPLE_VALIDATORS_SOURCESTRINGS_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_SOURCESTRINGS_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
/** Provides validators from a set of Validator strings.
|
||||
Typically this will come from a local configuration file.
|
||||
@@ -20,6 +20,7 @@ public:
|
||||
String name, StringArray const& strings);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
class SourceURLImp : public SourceURL
|
||||
{
|
||||
public:
|
||||
explicit SourceURLImp (UniformResourceLocator const& url)
|
||||
explicit SourceURLImp (URL const& url)
|
||||
: m_url (url)
|
||||
{
|
||||
}
|
||||
@@ -57,13 +57,13 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
UniformResourceLocator m_url;
|
||||
URL m_url;
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
SourceURL* SourceURL::New (
|
||||
UniformResourceLocator const& url)
|
||||
URL const& url)
|
||||
{
|
||||
ScopedPointer <SourceURL> object (
|
||||
new SourceURLImp (url));
|
||||
@@ -72,3 +72,4 @@ SourceURL* SourceURL::New (
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,17 +7,17 @@
|
||||
#ifndef RIPPLE_VALIDATORS_SOURCEURL_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_SOURCEURL_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
/** Provides validators from a trusted URI (e.g. HTTPS)
|
||||
*/
|
||||
/** Provides validators from a trusted URI (e.g. HTTPS) */
|
||||
class SourceURL : public Source
|
||||
{
|
||||
public:
|
||||
static SourceURL* New (UniformResourceLocator const& url);
|
||||
static SourceURL* New (URL const& url);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef RIPPLE_VALIDATORS_STORE_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_STORE_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
/** Abstract persistence for Validators data. */
|
||||
class Store
|
||||
@@ -29,6 +29,7 @@ protected:
|
||||
Store () { }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
StoreSqdb::StoreSqdb (Journal journal)
|
||||
: m_journal (journal)
|
||||
@@ -343,3 +343,4 @@ Error StoreSqdb::init ()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef RIPPLE_VALIDATORS_STORESQDB_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_STORESQDB_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
/** Database persistence for Validators using SQLite */
|
||||
class StoreSqdb : public Store
|
||||
@@ -36,6 +36,7 @@ private:
|
||||
sqdb::session m_session;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
class Tests : public UnitTest
|
||||
{
|
||||
@@ -220,3 +220,4 @@ public:
|
||||
static Tests tests;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
struct Utilities::Helpers
|
||||
{
|
||||
@@ -252,3 +252,4 @@ PublicKey Utilities::stringToPublicKey (std::string const& s)
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef RIPPLE_VALIDATORS_UTILITIES_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_UTILITIES_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
/** Common code for Validators classes.
|
||||
*/
|
||||
@@ -67,6 +67,7 @@ public:
|
||||
Source::Info& info, std::string const& line, Journal journal);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user