[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [5182] Add inchoate premium-tax class with unit test
From: |
Greg Chicares |
Subject: |
[lmi-commits] [5182] Add inchoate premium-tax class with unit test |
Date: |
Sat, 28 May 2011 11:24:13 +0000 |
Revision: 5182
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5182
Author: chicares
Date: 2011-05-28 11:24:13 +0000 (Sat, 28 May 2011)
Log Message:
-----------
Add inchoate premium-tax class with unit test
Modified Paths:
--------------
lmi/trunk/Makefile.am
lmi/trunk/objects.make
Added Paths:
-----------
lmi/trunk/premium_tax.cpp
lmi/trunk/premium_tax.hpp
lmi/trunk/premium_tax_test.cpp
Modified: lmi/trunk/Makefile.am
===================================================================
--- lmi/trunk/Makefile.am 2011-05-27 22:17:21 UTC (rev 5181)
+++ lmi/trunk/Makefile.am 2011-05-28 11:24:13 UTC (rev 5182)
@@ -122,6 +122,7 @@
test_numeric_io \
test_obstruct_slicing \
test_path_utility \
+ test_premium_tax \
test_print_matrix \
test_product_file \
test_progress_meter \
@@ -644,7 +645,6 @@
tn_range_types.cpp \
xml_lmi.cpp \
yare_input.cpp
-
test_input_CXXFLAGS = $(AM_CXXFLAGS) $(XMLWRAPP_CFLAGS)
test_input_LDADD = \
$(BOOST_LIBS) \
@@ -752,6 +752,17 @@
test_path_utility_LDADD = \
$(BOOST_LIBS)
+test_premium_tax_SOURCES = \
+ $(common_test_objects) \
+ global_settings.cpp \
+ miscellany.cpp \
+ path_utility.cpp \
+ premium_tax.cpp \
+ premium_tax_test.cpp
+test_premium_tax_CXXFLAGS = $(AM_CXXFLAGS)
+test_premium_tax_LDADD = \
+ $(BOOST_LIBS)
+
test_print_matrix_SOURCES = \
$(common_test_objects) \
print_matrix_test.cpp
@@ -1023,6 +1034,7 @@
policy_view.hpp \
preferences_model.hpp \
preferences_view.hpp \
+ premium_tax.hpp \
previewframe_ex.hpp \
print_matrix.hpp \
product_data.hpp \
Modified: lmi/trunk/objects.make
===================================================================
--- lmi/trunk/objects.make 2011-05-27 22:17:21 UTC (rev 5181)
+++ lmi/trunk/objects.make 2011-05-28 11:24:13 UTC (rev 5182)
@@ -483,6 +483,7 @@
numeric_io_test \
obstruct_slicing_test \
path_utility_test \
+ premium_tax_test \
print_matrix_test \
product_file_test \
progress_meter_test \
@@ -791,6 +792,15 @@
path_utility.o \
path_utility_test.o \
+premium_tax_test$(EXEEXT): \
+ $(boost_filesystem_objects) \
+ $(common_test_objects) \
+ global_settings.o \
+ miscellany.o \
+ path_utility.o \
+ premium_tax.o \
+ premium_tax_test.o \
+
print_matrix_test$(EXEEXT): \
$(common_test_objects) \
facets.o \
Added: lmi/trunk/premium_tax.cpp
===================================================================
--- lmi/trunk/premium_tax.cpp (rev 0)
+++ lmi/trunk/premium_tax.cpp 2011-05-28 11:24:13 UTC (rev 5182)
@@ -0,0 +1,48 @@
+// Premium tax.
+//
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2009, 2010, 2011 Gregory W. Chicares.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2 as
+// published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software Foundation,
+// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+//
+// http://savannah.nongnu.org/projects/lmi
+// email: <address@hidden>
+// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+
+// $Id$
+
+#ifdef __BORLANDC__
+# include "pchfile.hpp"
+# pragma hdrstop
+#endif // __BORLANDC__
+
+#include "premium_tax.hpp"
+
+premium_tax::premium_tax
+ (mcenum_state premium_tax_state
+ ,mcenum_state state_of_domicile
+ ,bool amortize_premium_load
+ ,product_database const& database
+ ,stratified_charges const& strata
+ )
+{
+(void)premium_tax_state;
+(void)state_of_domicile;
+(void)amortize_premium_load;
+(void)database;
+(void)strata;
+}
+
+premium_tax::~premium_tax()
+{}
+
Property changes on: lmi/trunk/premium_tax.cpp
___________________________________________________________________
Added: svn:keywords
+ Id
Added: lmi/trunk/premium_tax.hpp
===================================================================
--- lmi/trunk/premium_tax.hpp (rev 0)
+++ lmi/trunk/premium_tax.hpp 2011-05-28 11:24:13 UTC (rev 5182)
@@ -0,0 +1,54 @@
+// Premium tax.
+//
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2009, 2010, 2011 Gregory W. Chicares.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2 as
+// published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software Foundation,
+// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+//
+// http://savannah.nongnu.org/projects/lmi
+// email: <address@hidden>
+// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+
+// $Id$
+
+#ifndef premium_tax_hpp
+#define premium_tax_hpp
+
+#include "config.hpp"
+
+#include "mc_enum_type_enums.hpp" // mcenum_state
+#include "obstruct_slicing.hpp"
+#include "uncopyable_lmi.hpp"
+
+class product_database;
+class stratified_charges;
+
+class premium_tax
+ : private lmi::uncopyable <premium_tax>
+ ,virtual private obstruct_slicing<premium_tax>
+{
+ public:
+ premium_tax
+ (mcenum_state premium_tax_state
+ ,mcenum_state state_of_domicile
+ ,bool amortize_premium_load
+ ,product_database const& database
+ ,stratified_charges const& strata
+ );
+ ~premium_tax();
+
+ private:
+};
+
+#endif // premium_tax_hpp
+
Property changes on: lmi/trunk/premium_tax.hpp
___________________________________________________________________
Added: svn:keywords
+ Id
Added: lmi/trunk/premium_tax_test.cpp
===================================================================
--- lmi/trunk/premium_tax_test.cpp (rev 0)
+++ lmi/trunk/premium_tax_test.cpp 2011-05-28 11:24:13 UTC (rev 5182)
@@ -0,0 +1,61 @@
+// Premium tax--unit test.
+//
+// Copyright (C) 2011 Gregory W. Chicares.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2 as
+// published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software Foundation,
+// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+//
+// http://savannah.nongnu.org/projects/lmi
+// email: <address@hidden>
+// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+
+// $Id$
+
+#ifdef __BORLANDC__
+# include "pchfile.hpp"
+# pragma hdrstop
+#endif // __BORLANDC__
+
+#include "premium_tax.hpp"
+
+#include "path_utility.hpp" // initialize_filesystem()
+#include "test_tools.hpp"
+
+class premium_tax_test
+{
+ public:
+ static void test()
+ {
+ test_something();
+ }
+
+ private:
+ static void test_something();
+};
+
+/// Placeholder.
+
+void premium_tax_test::test_something()
+{
+}
+
+int test_main(int, char*[])
+{
+ // Absolute paths require "native" name-checking policy for msw.
+ initialize_filesystem();
+
+ premium_tax_test::test();
+
+ return EXIT_SUCCESS;
+}
+
Property changes on: lmi/trunk/premium_tax_test.cpp
___________________________________________________________________
Added: svn:keywords
+ Id
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [5182] Add inchoate premium-tax class with unit test,
Greg Chicares <=