mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Typo.
This commit is contained in:
32
src/SerializedLedger.h
Normal file
32
src/SerializedLedger.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef __SERIALIZEDLEDGER__
|
||||
#define __SERIALIZEDLEDGER__
|
||||
|
||||
#include "SerializedObject.h"
|
||||
#include "LedgerFormats.h"
|
||||
|
||||
class SerializedLedger : public STObject
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<SerializedLedger> pointer;
|
||||
|
||||
protected:
|
||||
LedgerEntryType mType;
|
||||
STUInt16 mVersion;
|
||||
STObject mObject;
|
||||
LedgerEntryFormat* mFormat;
|
||||
|
||||
public:
|
||||
SerializedLedger(SerializerIterator& sit);
|
||||
SerializedLedger(LedgerEntryType type);
|
||||
|
||||
int getLength() const { return mVersion.getLength() + mObject.getLength(); }
|
||||
SerializedTypeID getType() const { return STI_LEDGERENTRY; }
|
||||
SerializedLedger* duplicate() const { return new SerializedLedger(*this); }
|
||||
std::string getFullText() const;
|
||||
std::string getText() const;
|
||||
void add(Serializer& s) const { mVersion.add(s); mObject.add(s); }
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user