lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [5580] Refactor


From: Greg Chicares
Subject: [lmi-commits] [5580] Refactor
Date: Wed, 24 Oct 2012 16:50:30 +0000

Revision: 5580
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5580
Author:   chicares
Date:     2012-10-24 16:50:30 +0000 (Wed, 24 Oct 2012)
Log Message:
-----------
Refactor

Modified Paths:
--------------
    lmi/trunk/input_harmonization.cpp

Modified: lmi/trunk/input_harmonization.cpp
===================================================================
--- lmi/trunk/input_harmonization.cpp   2012-10-23 00:08:24 UTC (rev 5579)
+++ lmi/trunk/input_harmonization.cpp   2012-10-24 16:50:30 UTC (rev 5580)
@@ -28,18 +28,17 @@
 
 #include "input.hpp"
 
+#include "actuarial_table.hpp"          // e_reenter_upon_rate_reset
 #include "alert.hpp"
-#include "assert_lmi.hpp"
 #include "calendar_date.hpp"
-#include "contains.hpp"
 #include "database.hpp"
 #include "dbnames.hpp"
 #include "global_settings.hpp"
 #include "input_sequence.hpp"
-#include "mc_enum_types_aux.hpp"
-#include "value_cast.hpp"
+#include "mc_enum_types_aux.hpp"        // is_subject_to_ill_reg(), 
is_three_rate_nasd()
 
-#include <algorithm> // std::min(), std::max()
+#include <algorithm>                    // std::min(), std::max()
+#include <utility>                      // std::pair
 
 // Harmonization is physically separated for no better reason than to
 // facilitate its development at a time when it frequently changes.
@@ -390,13 +389,7 @@
         ,true
         );
     LastCoiReentryDate.maximum(most_recent_anniversary);
-    // DATABASE !! Here, 'e_reenter_upon_rate_reset' would be better
-    // than the hardcoded '2'. However, '2' is already hardcoded in
-    // the 'dbnames.xpp' explanation of 'LastCoiReentryDate', so
-    // hardcoding it here doesn't introduce a new kind of defect.
-    // Ultimately, the product database should probably use mc_enum
-    // types instead; until then, this will do.
-    LastCoiReentryDate.enable(2 == database_->Query(DB_CoiInforceReentry));
+    LastCoiReentryDate.enable(e_reenter_upon_rate_reset == 
database_->Query(DB_CoiInforceReentry));
 
     BlendGender.enable(database_->Query(DB_AllowMortBlendSex));
     bool blend_mortality_by_gender = mce_yes == BlendGender;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]