[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 2bc3d08 02/24: Move an enum
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 2bc3d08 02/24: Move an enum |
Date: |
Wed, 30 Dec 2020 18:46:55 -0500 (EST) |
branch: master
commit 2bc3d08df1438003c7c04df6367ae7e138a7b3f2
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Move an enum
Moved an enum into the only TU that uses it, to improve encapsulation.
---
ihs_server7702.cpp | 11 +++++++++++
ihs_server7702.hpp | 11 -----------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/ihs_server7702.cpp b/ihs_server7702.cpp
index a8d9346..ebfd64b 100644
--- a/ihs_server7702.cpp
+++ b/ihs_server7702.cpp
@@ -36,6 +36,17 @@
#include <exception>
+enum
+ {unknown_error = 0x0001
+ ,precision_changed = 0x0002
+ ,implausible_input = 0x0004
+ ,inconsistent_input = 0x0008
+ ,product_rule_violated = 0x0010
+ ,adjustable_event_forbidden_at_issue = 0x0020
+ ,guideline_negative = 0x0040
+ ,misstatement_of_age_or_gender = 0x0080
+ };
+
//============================================================================
void EnterServer()
{
diff --git a/ihs_server7702.hpp b/ihs_server7702.hpp
index 029ed96..2779304 100644
--- a/ihs_server7702.hpp
+++ b/ihs_server7702.hpp
@@ -87,17 +87,6 @@ class Server7702
bool IsPossibleAdjustableEvent;
};
-enum
- {unknown_error = 0x0001
- ,precision_changed = 0x0002
- ,implausible_input = 0x0004
- ,inconsistent_input = 0x0008
- ,product_rule_violated = 0x0010
- ,adjustable_event_forbidden_at_issue = 0x0020
- ,guideline_negative = 0x0040
- ,misstatement_of_age_or_gender = 0x0080
- };
-
// We have no specific exception class for unknown_error
// precisely because it's unknown. We return it when we
// catch class exception after trying all the more
- [lmi-commits] [lmi] master 55a3eb0 12/24: Note an apparent defect [327], (continued)
- [lmi-commits] [lmi] master 55a3eb0 12/24: Note an apparent defect [327], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 53e98ab 13/24: Fix defect introduced 20100723T2339Z: wrong jurisdiction [326], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master e4c790a 18/24: Expunge a defect marker [324], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d89a676 22/24: Refactor to avoid a header-only implementation, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 3121c90 23/24: Conditionally use H.R. 6800's 7702 transitional rates, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 3ee0c70 15/24: Make two member functions identical, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d7f3337 09/24: Move a block of code as just announced, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d4e0291 10/24: Refactor, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 71d750e 14/24: Make two member functions almost identical, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master a473a82 17/24: Expunge a duplicative member function [325], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 2bc3d08 02/24: Move an enum,
Greg Chicares <=
- [lmi-commits] [lmi] master b3cbe37 11/24: Move another block of code, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 9180696 16/24: Change a member's type-specifier, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 3ee62a7 19/24: Read product data files earlier, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 7930f69 20/24: Set 7702 and 7702A interest rates OAOO, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d6701e8 21/24: Split a unit-test TU in twain, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master e1047b3 24/24: Record speed measurements, Greg Chicares, 2020/12/30