[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master bba7c75 1/3: Add "sample" product for testing
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master bba7c75 1/3: Add "sample" product for testing group premium quotes |
Date: |
Thu, 19 Jul 2018 13:07:00 -0400 (EDT) |
branch: master
commit bba7c756fb282cf8b252a345522e5eaa6389d24e
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Add "sample" product for testing group premium quotes
See:
https://lists.nongnu.org/archive/html/lmi/2018-07/msg00019.html
---
dbdict.cpp | 7 +++++++
product_data.cpp | 5 +++++
2 files changed, 12 insertions(+)
diff --git a/dbdict.cpp b/dbdict.cpp
index 49e69ff..ac4b60c 100644
--- a/dbdict.cpp
+++ b/dbdict.cpp
@@ -965,6 +965,13 @@ void DBDictionary::write_database_files()
z.Add(database_entity(DB_LedgerType ,
mce_individual_private_placement));
z.WriteDB(AddDataDir("sample2ipp.database"));
+
+ // Certain group-quote columns are available only when these two
+ // entities are 'true':
+ z.Add(database_entity(DB_SplitMinPrem , true));
+ z.Add(database_entity(DB_TermIsNotRider , true));
+ z.Add(database_entity(DB_LedgerType , mce_ill_reg));
+ z.WriteDB(AddDataDir("sample2quo.database"));
}
/// Initialize the built-in database for the antediluvian branch.
diff --git a/product_data.cpp b/product_data.cpp
index 19d5509..6e4d7c1 100644
--- a/product_data.cpp
+++ b/product_data.cpp
@@ -435,6 +435,8 @@ void product_data::redintegrate_ex_post
/// sample2nasd mce_nasd
/// sample2gpp mce_group_private_placement
/// sample2ipp mce_individual_private_placement
+/// and one for group premium quotes with every possible column:
+/// sample2quo mce_ill_reg
/// "*Filename" members are names of actual lmi product files, or
/// basenames of mortality-table databases, and their values must
/// nominate actual files. Member 'InsCoDomicile' is used to
@@ -573,6 +575,9 @@ void product_data::write_policy_files()
z.save(AddDataDir("sample2naic.policy"));
+ z.DatabaseFilename = glossed_string("sample2quo.database");
+ z.save(AddDataDir("sample2quo.policy"));
+
z.DatabaseFilename = glossed_string("sample2nasd.database");
z.save(AddDataDir("sample2nasd.policy"));