Alphabet class for base58 conversions, Validators work

This commit is contained in:
Vinnie Falco
2013-10-03 18:29:30 -07:00
parent 7d089561c3
commit 66a272debd
21 changed files with 468 additions and 220 deletions

View File

@@ -44,10 +44,15 @@ public:
*/
virtual ~Source () { }
/** The name of the source, used in diagnostic output. */
virtual String name () = 0;
/** An identifier that uniquely describes the source.
This is used for identification in the database.
*/
virtual String uniqueID () = 0;
/** A string that is used to recreate the source from the database entry. */
virtual String createParam () = 0;
/** Fetch the most recent list from the Source.
@@ -61,14 +66,14 @@ public:
bool success;
String message;
Time expirationTime;
Array <Info> list;
std::vector <Info> list;
};
/** Cancel any pending fetch.
The default implementation does nothing.
*/
virtual void cancel () { }
virtual Result fetch (Journal journal) = 0;
virtual void fetch (Result& result, Journal journal) = 0;
};
}