[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] valyuta/004 5ceb54d 01/17: Move an enum
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] valyuta/004 5ceb54d 01/17: Move an enum |
Date: |
Thu, 24 Dec 2020 10:23:49 -0500 (EST) |
branch: valyuta/004
commit 5ceb54df63a27ddc7ceeb9ec11832015509462e6
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] valyuta/004 updated (7192b10 -> cf62b44), Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 3c157f7 03/17: Report a range error when a range error is caught [336], Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 2504286 04/17: Resolve some marked defects [333], Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 eeacb20 07/17: Prepare to move a block of code, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 f16fd3a 02/17: Expunge an unwanted exception class, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 5ceb54d 01/17: Move an enum,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/004 5ac107f 09/17: Refactor, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 c9b4787 13/17: Make two member functions almost identical, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 cf62b44 17/17: Record timings, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 9d9c2b7 06/17: Assert "length" is same in two classes, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 67f1c54 08/17: Move a block of code as just announced, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 80a18db 14/17: Make two member functions identical, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 89ea7c8 15/17: Change a member's datatype, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 c6f6f55 16/17: Expunge a duplicative member function [325], Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 17275df 05/17: Resolve some more marked defects [326], Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 72dcc19 11/17: Note an apparent defect [327], Greg Chicares, 2020/12/24