mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 20:45:51 +00:00
Validators work
This commit is contained in:
48
src/ripple/validators/impl/SourceFile.cpp
Normal file
48
src/ripple/validators/impl/SourceFile.cpp
Normal file
@@ -0,0 +1,48 @@
|
||||
//------------------------------------------------------------------------------
|
||||
/*
|
||||
Copyright (c) 2011-2013, OpenCoin, Inc.
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
|
||||
class SourceFileImp : public SourceFile
|
||||
{
|
||||
public:
|
||||
SourceFileImp (File const& file)
|
||||
: m_file (file)
|
||||
{
|
||||
}
|
||||
|
||||
~SourceFileImp ()
|
||||
{
|
||||
}
|
||||
|
||||
String name ()
|
||||
{
|
||||
return "File :'" + m_file.getFullPathName () + "'";
|
||||
}
|
||||
|
||||
Result fetch (CancelCallback&, Journal journal)
|
||||
{
|
||||
Result result;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private:
|
||||
File m_file;
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
SourceFile* SourceFile::New (File const& file)
|
||||
{
|
||||
ScopedPointer <SourceFile> object (
|
||||
new SourceFileImp (file));
|
||||
|
||||
return object.release ();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user