[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6302] Establish new database entities for regulatory rest
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6302] Establish new database entities for regulatory restrictions |
Date: |
Fri, 25 Sep 2015 17:31:49 +0000 |
Revision: 6302
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6302
Author: chicares
Date: 2015-09-25 17:31:49 +0000 (Fri, 25 Sep 2015)
Log Message:
-----------
Establish new database entities for regulatory restrictions
Modified Paths:
--------------
lmi/trunk/ChangeLog
lmi/trunk/basic_values.hpp
lmi/trunk/basicvalues.cpp
lmi/trunk/dbdict.cpp
lmi/trunk/dbdict.hpp
lmi/trunk/dbnames.hpp
lmi/trunk/dbnames.xpp
lmi/trunk/ihs_basicval.cpp
Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2015-09-25 02:46:19 UTC (rev 6301)
+++ lmi/trunk/ChangeLog 2015-09-25 17:31:49 UTC (rev 6302)
@@ -36871,3 +36871,42 @@
Mark a defect: in force even one single day implies inforce. See:
http://lists.nongnu.org/archive/html/lmi/2015-09/msg00017.html
+20150925T0221Z <address@hidden> [475]
+
+ emit_ledger.cpp
+ group_quote_pdf_gen_wx.cpp
+ ledger.cpp
+ ledger.hpp
+ ledger_text_formats.cpp
+ ledger_xml_io.cpp
+ ledger_xsl.cpp
+Rename certain members.
+
+20150925T0237Z <address@hidden> [475]
+
+ accountvalue.cpp
+ basic_values.hpp
+ basicvalues.cpp
+ ihs_acctval.cpp
+ ihs_basicval.cpp
+Rename certain members.
+
+20150925T0246Z <address@hidden> [475]
+
+ dbdict.cpp
+ dbdict.hpp
+ dbnames.hpp
+ dbnames.xpp
+Rearrange database entitites.
+
+20150925T1731Z <address@hidden> [475]
+
+ basic_values.hpp
+ basicvalues.cpp
+ dbdict.cpp
+ dbdict.hpp
+ dbnames.hpp
+ dbnames.xpp
+ ihs_basicval.cpp
+Establish new database entities for regulatory restrictions.
+
Modified: lmi/trunk/basic_values.hpp
===================================================================
--- lmi/trunk/basic_values.hpp 2015-09-25 02:46:19 UTC (rev 6301)
+++ lmi/trunk/basic_values.hpp 2015-09-25 17:31:49 UTC (rev 6302)
@@ -108,10 +108,12 @@
int GetIssueAge() const;
int GetRetAge() const;
mcenum_ledger_type ledger_type () const;
+ bool nonillustrated () const;
+ bool no_can_issue () const;
+ bool IsSubjectToIllustrationReg() const;
mcenum_state GetStateOfJurisdiction() const;
mcenum_state GetStateOfDomicile() const;
mcenum_state GetPremiumTaxState() const;
- bool IsSubjectToIllustrationReg() const;
double InvestmentManagementFee() const;
yare_input yare_input_;
@@ -418,6 +420,8 @@
) const;
mcenum_ledger_type ledger_type_;
+ bool nonillustrated_;
+ bool no_can_issue_;
bool IsSubjectToIllustrationReg_;
mcenum_state StateOfJurisdiction_;
mcenum_state StateOfDomicile_;
@@ -478,6 +482,21 @@
return ledger_type_;
}
+inline bool BasicValues::nonillustrated() const
+{
+ return nonillustrated_;
+}
+
+inline bool BasicValues::no_can_issue() const
+{
+ return no_can_issue_;
+}
+
+inline bool BasicValues::IsSubjectToIllustrationReg() const
+{
+ return IsSubjectToIllustrationReg_;
+}
+
inline mcenum_state BasicValues::GetStateOfJurisdiction() const
{
return StateOfJurisdiction_;
@@ -493,11 +512,6 @@
return PremiumTaxState_;
}
-inline bool BasicValues::IsSubjectToIllustrationReg() const
-{
- return IsSubjectToIllustrationReg_;
-}
-
// IHS !! Use a configuration file instead. These deprecated
// functions are used only by the antediluvian branch.
char const* CurrentTableFile();
Modified: lmi/trunk/basicvalues.cpp
===================================================================
--- lmi/trunk/basicvalues.cpp 2015-09-25 02:46:19 UTC (rev 6301)
+++ lmi/trunk/basicvalues.cpp 2015-09-25 17:31:49 UTC (rev 6302)
@@ -119,6 +119,10 @@
(Database_->Query(DB_LedgerType))
)
;
+ nonillustrated_ =
static_cast<bool>(Database_->Query(DB_Nonillustrated));
+ bool no_longer_issued =
static_cast<bool>(Database_->Query(DB_NoLongerIssued));
+ bool is_inforce = yare_input_.EffectiveDate <
yare_input_.InforceAsOfDate;
+ no_can_issue_ = no_longer_issued && !is_inforce;
IsSubjectToIllustrationReg_ = is_subject_to_ill_reg(ledger_type());
// IHS !! Just a dummy initialization here--implemented in lmi.
Modified: lmi/trunk/dbdict.cpp
===================================================================
--- lmi/trunk/dbdict.cpp 2015-09-25 02:46:19 UTC (rev 6301)
+++ lmi/trunk/dbdict.cpp 2015-09-25 17:31:49 UTC (rev 6302)
@@ -392,6 +392,8 @@
ascribe("ExpRatRiskCoiMult" , &DBDictionary::ExpRatRiskCoiMult );
ascribe("ExpRatAmortPeriod" , &DBDictionary::ExpRatAmortPeriod );
ascribe("LedgerType" , &DBDictionary::LedgerType );
+ ascribe("Nonillustrated" , &DBDictionary::Nonillustrated );
+ ascribe("NoLongerIssued" , &DBDictionary::NoLongerIssued );
ascribe("AgeLastOrNearest" , &DBDictionary::AgeLastOrNearest );
ascribe("MaturityAge" , &DBDictionary::MaturityAge );
ascribe("LapseIgnoresSurrChg" , &DBDictionary::LapseIgnoresSurrChg );
Modified: lmi/trunk/dbdict.hpp
===================================================================
--- lmi/trunk/dbdict.hpp 2015-09-25 02:46:19 UTC (rev 6301)
+++ lmi/trunk/dbdict.hpp 2015-09-25 17:31:49 UTC (rev 6302)
@@ -368,6 +368,8 @@
database_entity ExpRatRiskCoiMult ;
database_entity ExpRatAmortPeriod ;
database_entity LedgerType ;
+ database_entity Nonillustrated ;
+ database_entity NoLongerIssued ;
database_entity AgeLastOrNearest ;
database_entity MaturityAge ;
database_entity LapseIgnoresSurrChg ;
Modified: lmi/trunk/dbnames.hpp
===================================================================
--- lmi/trunk/dbnames.hpp 2015-09-25 02:46:19 UTC (rev 6301)
+++ lmi/trunk/dbnames.hpp 2015-09-25 17:31:49 UTC (rev 6302)
@@ -492,6 +492,8 @@
,DB_Topic_Miscellanea
,DB_LedgerType
+ ,DB_Nonillustrated
+ ,DB_NoLongerIssued
,DB_AgeLastOrNearest
,DB_MaturityAge
Modified: lmi/trunk/dbnames.xpp
===================================================================
--- lmi/trunk/dbnames.xpp 2015-09-25 02:46:19 UTC (rev 6301)
+++ lmi/trunk/dbnames.xpp 2015-09-25 17:31:49 UTC (rev 6302)
@@ -315,6 +315,8 @@
{DB_ExpRatAmortPeriod,DB_Topic_ExperienceRating,"ExpRatAmortPeriod","Experience
rating amortization period",}, \
{DB_Topic_Miscellanea,DB_FIRST,"Miscellanea","Parameters that don't fit tidily
into other categories",}, \
{DB_LedgerType,DB_Topic_Miscellanea,"LedgerType","Ledger type: 0=illustration
reg, 1=NASD, 2=prospectus illustration, 3=group private placement, 4=offshore
private placement, 5=private placement subject to illustration reg,
6=individual private placement, 7=variable annuity",}, \
+{DB_Nonillustrated,DB_Topic_Miscellanea,"Nonillustrated","Forbid all
illustrations: 0=no, 1=yes",}, \
+{DB_NoLongerIssued,DB_Topic_Miscellanea,"NoLongerIssued","Forbid new-business
illustrations: 0=no, 1=yes",}, \
{DB_AgeLastOrNearest,DB_Topic_Miscellanea,"AgeLastOrNearest","Age calculated
as of last or nearest birthday: 0=ALB, 1=ANB (ties --> older), 2=ANB (ties -->
younger)",}, \
{DB_MaturityAge,DB_Topic_Miscellanea,"MaturityAge","Normal maturity age",}, \
{DB_LapseIgnoresSurrChg,DB_Topic_Miscellanea,"LapseIgnoresSurrChg","Ignore
tabular surrender charge for lapse processing",}, \
Modified: lmi/trunk/ihs_basicval.cpp
===================================================================
--- lmi/trunk/ihs_basicval.cpp 2015-09-25 02:46:19 UTC (rev 6301)
+++ lmi/trunk/ihs_basicval.cpp 2015-09-25 17:31:49 UTC (rev 6302)
@@ -184,6 +184,10 @@
(Database_->Query(DB_LedgerType))
)
;
+ nonillustrated_ =
static_cast<bool>(Database_->Query(DB_Nonillustrated));
+ bool no_longer_issued =
static_cast<bool>(Database_->Query(DB_NoLongerIssued));
+ bool is_inforce = yare_input_.EffectiveDate <
yare_input_.InforceAsOfDate;
+ no_can_issue_ = no_longer_issued && !is_inforce;
IsSubjectToIllustrationReg_ = is_subject_to_ill_reg(ledger_type());
if(IssueAge < Database_->Query(DB_MinIssAge))
@@ -286,6 +290,10 @@
(Database_->Query(DB_LedgerType))
)
;
+ nonillustrated_ =
static_cast<bool>(Database_->Query(DB_Nonillustrated));
+ bool no_longer_issued =
static_cast<bool>(Database_->Query(DB_NoLongerIssued));
+ bool is_inforce = yare_input_.EffectiveDate <
yare_input_.InforceAsOfDate;
+ no_can_issue_ = no_longer_issued && !is_inforce;
IsSubjectToIllustrationReg_ = is_subject_to_ill_reg(ledger_type());
if(IssueAge < Database_->Query(DB_MinIssAge))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6302] Establish new database entities for regulatory restrictions,
Greg Chicares <=