From 90ff46ff770b5bebf5e9babfcd4faff9df6c1ab1 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 26 Nov 2012 11:18:16 -0800 Subject: [PATCH] Add isUseful. --- src/cpp/ripple/FieldNames.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpp/ripple/FieldNames.h b/src/cpp/ripple/FieldNames.h index cec031d8d..4919569e1 100644 --- a/src/cpp/ripple/FieldNames.h +++ b/src/cpp/ripple/FieldNames.h @@ -92,6 +92,7 @@ public: bool isGeneric() const { return fieldCode == 0; } bool isInvalid() const { return fieldCode == -1; } + bool isUseful() const { return fieldCode > 0; } bool isKnown() const { return fieldType != STI_UNKNOWN; } bool isBinary() const { return fieldValue < 256; } bool isDiscardable() const { return fieldValue > 256; }