lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 888968c 1/2: Add inchoate product-validation


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 888968c 1/2: Add inchoate product-validation modules
Date: Tue, 5 Mar 2019 18:37:34 -0500 (EST)

branch: master
commit 888968c6f9d3c0a2fad23d3e95b622b3d2b056c4
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Add inchoate product-validation modules
---
 Makefile.am            |  4 ++++
 antediluvian_stubs.cpp |  8 +++++++-
 cso_tables.cpp         | 30 ++++++++++++++++++++++++++++++
 cso_tables.hpp         | 31 +++++++++++++++++++++++++++++++
 main_cli.cpp           |  3 ++-
 objects.make           |  2 ++
 skeleton.cpp           |  3 ++-
 verify_products.cpp    | 30 ++++++++++++++++++++++++++++++
 verify_products.hpp    | 31 +++++++++++++++++++++++++++++++
 9 files changed, 139 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index f28b511..99bf499 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -393,6 +393,7 @@ libantediluvian_la_LIBADD = \
 liblmi_la_SOURCES = \
     authenticity.cpp \
     commutation_functions.cpp \
+    cso_tables.cpp \
     financial.cpp \
     fund_data.cpp \
     gpt_input.cpp \
@@ -423,6 +424,7 @@ liblmi_la_SOURCES = \
     rounding_rules.cpp \
     stratified_algorithms.cpp \
     stratified_charges.cpp \
+    verify_products.cpp \
     $(liblmi_common_sources)
 liblmi_la_CXXFLAGS = $(AM_CXXFLAGS) $(XMLWRAPP_CFLAGS)
 liblmi_la_CFLAGS = $(AM_CFLAGS)
@@ -1171,6 +1173,7 @@ noinst_HEADERS = \
     configurable_settings.hpp \
     contains.hpp \
     crc32.hpp \
+    cso_tables.hpp \
     currency.hpp \
     custom_io_0.hpp \
     custom_io_1.hpp \
@@ -1338,6 +1341,7 @@ noinst_HEADERS = \
     tn_range_types.hpp \
     transferor.hpp \
     value_cast.hpp \
+    verify_products.hpp \
     version.hpp \
     view_ex.hpp \
     view_ex.tpp \
diff --git a/antediluvian_stubs.cpp b/antediluvian_stubs.cpp
index c331e70..2bcca82 100644
--- a/antediluvian_stubs.cpp
+++ b/antediluvian_stubs.cpp
@@ -27,6 +27,7 @@
 #include "mec_server.hpp"
 #include "product_data.hpp"
 #include "stratified_charges.hpp"
+#include "verify_products.hpp"
 #include "xml_lmi.hpp"
 #include "xml_serializable.tpp"
 
@@ -35,6 +36,8 @@ namespace
     std::string const empty_string = std::string();
 } // Unnamed namespace.
 
+// Free-function stubs alphabetized in ASCII order.
+
 void authenticate_system()
 {}
 
@@ -43,7 +46,10 @@ bool is_antediluvian_fork()
     return true;
 }
 
-// Stubs alphabetized in ASCII order.
+void verify_products()
+{}
+
+// Member-function stubs alphabetized in ASCII order.
 
 int FundData::GetNumberOfFunds() const
 {
diff --git a/cso_tables.cpp b/cso_tables.cpp
new file mode 100644
index 0000000..5cf63b6
--- /dev/null
+++ b/cso_tables.cpp
@@ -0,0 +1,30 @@
+// 1980, 2001, and 2017 CSO tables.
+//
+// Copyright (C) 2019 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
+
+#include "pchfile.hpp"
+
+#include "cso_tables.hpp"
+
+/// Just a placeholder for the nonce.
+
+void cso_tables()
+{
+}
diff --git a/cso_tables.hpp b/cso_tables.hpp
new file mode 100644
index 0000000..c1e8850
--- /dev/null
+++ b/cso_tables.hpp
@@ -0,0 +1,31 @@
+// 1980, 2001, and 2017 CSO tables.
+//
+// Copyright (C) 2019 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
+
+#ifndef cso_tables_hpp
+#define cso_tables_hpp
+
+#include "config.hpp"
+
+#include "so_attributes.hpp"
+
+void LMI_SO cso_tables();
+
+#endif // cso_tables_hpp
diff --git a/main_cli.cpp b/main_cli.cpp
index 4f6e0ec..21b40d6 100644
--- a/main_cli.cpp
+++ b/main_cli.cpp
@@ -46,6 +46,7 @@
 #include "so_attributes.hpp"
 #include "timer.hpp"
 #include "value_cast.hpp"
+#include "verify_products.hpp"
 
 #include <boost/filesystem/convenience.hpp>
 #include <boost/filesystem/path.hpp>
@@ -388,7 +389,7 @@ void process_command_line(int argc, char* argv[])
 
             case 't':
                 {
-                print_databases();
+                verify_products();
                 return;
                 }
                 break;
diff --git a/objects.make b/objects.make
index db22d8c..ff21f26 100644
--- a/objects.make
+++ b/objects.make
@@ -277,6 +277,7 @@ lmi_common_objects := \
   $(common_common_objects) \
   authenticity.o \
   commutation_functions.o \
+  cso_tables.o \
   financial.o \
   fund_data.o \
   gpt_input.o \
@@ -307,6 +308,7 @@ lmi_common_objects := \
   rounding_rules.o \
   stratified_algorithms.o \
   stratified_charges.o \
+  verify_products.o \
 
 skeleton_objects := \
   $(duplicated_objects) \
diff --git a/skeleton.cpp b/skeleton.cpp
index 74da643..611f06c 100644
--- a/skeleton.cpp
+++ b/skeleton.cpp
@@ -78,6 +78,7 @@
 #include "text_view.hpp"
 #include "tier_document.hpp"
 #include "tier_view.hpp"
+#include "verify_products.hpp"
 #include "wx_new.hpp"
 #include "wx_utility.hpp"               // class ClipboardEx
 
@@ -1291,7 +1292,7 @@ bool Skeleton::ProcessCommandLine()
 
             case 't':
                 {
-                print_databases();
+                verify_products();
                 return false;
                 }
                 break;
diff --git a/verify_products.cpp b/verify_products.cpp
new file mode 100644
index 0000000..742755b
--- /dev/null
+++ b/verify_products.cpp
@@ -0,0 +1,30 @@
+// Verify product files.
+//
+// Copyright (C) 2019 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
+
+#include "pchfile.hpp"
+
+#include "verify_products.hpp"
+
+/// Verify all products.
+
+void verify_products()
+{
+}
diff --git a/verify_products.hpp b/verify_products.hpp
new file mode 100644
index 0000000..5f70aad
--- /dev/null
+++ b/verify_products.hpp
@@ -0,0 +1,31 @@
+// Verify product files.
+//
+// Copyright (C) 2019 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
+
+#ifndef verify_products_hpp
+#define verify_products_hpp
+
+#include "config.hpp"
+
+#include "so_attributes.hpp"
+
+void LMI_SO verify_products();
+
+#endif // verify_products_hpp



reply via email to

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