From 16cadaf43f0cf47fc6f3e1a31a755fc710387496 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 26 Sep 2012 15:09:00 -0700 Subject: [PATCH] Special types of high-level objects. --- src/FieldNames.cpp | 3 +++ src/FieldNames.h | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/FieldNames.cpp b/src/FieldNames.cpp index 316410ffb6..98ba23616e 100644 --- a/src/FieldNames.cpp +++ b/src/FieldNames.cpp @@ -8,6 +8,9 @@ SField sfInvalid(-1), sfGeneric(0); +SField sfLedgerEntry(FIELD_CODE(STI_LEDGERENTRY, 1), STI_LEDGERENTRY, 1, "LedgerEntry"); +SField sfTransaction(FIELD_CODE(STI_TRANSACTION, 1), STI_TRANSACTION, 1, "Transaction"); +SField sfValidation(FIELD_CODE(STI_VALIDATION, 1), STI_VALIDATION, 1, "Validation"); #define FIELD(name, type, index) SField sf##name(FIELD_CODE(STI_##type, index), STI_##type, index, #name); #define TYPE(name, type, index) diff --git a/src/FieldNames.h b/src/FieldNames.h index cfcb649f06..8dbbb0bcd4 100644 --- a/src/FieldNames.h +++ b/src/FieldNames.h @@ -21,9 +21,9 @@ enum SerializedTypeID #undef FIELD // high level types - STI_TRANSACTION = 100001, - STI_LEDGERENTRY = 100002, - STI_VALIDATION = 100003, + STI_TRANSACTION = 10001, + STI_LEDGERENTRY = 10002, + STI_VALIDATION = 10003, }; enum SOE_Flags @@ -73,7 +73,7 @@ public: static int compare(SField::ref f1, SField::ref f2); }; -extern SField sfInvalid, sfGeneric; +extern SField sfInvalid, sfGeneric, sfLedgerEntry, sfTransaction; #define FIELD(name, type, index) extern SField sf##name; #define TYPE(name, type, index)