[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 519681b 2/2: Rename 'irc7702.?pp' --> 'gpt770
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 519681b 2/2: Rename 'irc7702.?pp' --> 'gpt7702.?pp' |
Date: |
Mon, 17 May 2021 20:14:57 -0400 (EDT) |
branch: master
commit 519681b1b5939274109361b71e58a5ec093fb196
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Rename 'irc7702.?pp' --> 'gpt7702.?pp'
The implementation to be committed soon is for GPT only, because
- it constitutes a coherent standalone abstraction; and
- CVAT, though trivial, is incongruous with GPT.
Chose the name 'gpt7702' for the files and for the class because
- 'gpt' alone would be ungreppable
- names such as 'gpt_impl' or 'gpt_class' gain greppability only by
appending meaningless suffixes
- although a -'7702' suffix adds no meaning that 'gpt' alone lacks,
grepping for '7702' finds all 7702 code
- 'gpt7702' stands out from existing /gpt_.*/ file names, which is
good: they're ancillary, but this is fundamental
Considered but rejected 'gptest': it's always "G P T", and nobody ever
speaks of a "G P Test"; and that would leave no good name for existing
file 'gpt_test.cpp'.
It's best to rename everything now before actually implementing it.
---
Makefile.am | 8 ++++----
irc7702.cpp => gpt7702.cpp | 4 ++--
irc7702.hpp => gpt7702.hpp | 8 ++++----
gpt_commutation_functions.hpp | 2 +-
gpt_test.cpp | 2 +-
objects.make | 4 ++--
6 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 4b5f1e6..de4c393 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -427,6 +427,7 @@ liblmi_la_SOURCES = \
cso_table.cpp \
financial.cpp \
fund_data.cpp \
+ gpt7702.cpp \
gpt_commutation_functions.cpp \
gpt_input.cpp \
gpt_server.cpp \
@@ -445,7 +446,6 @@ liblmi_la_SOURCES = \
ihs_irc7702a.cpp \
ihs_mortal.cpp \
ihs_server7702.cpp \
- irc7702.cpp \
irc7702_tables.cpp \
lingo.cpp \
lmi.cpp \
@@ -757,9 +757,9 @@ gpt_cf_triad_test_LDADD = \
gpt_test_SOURCES = \
commutation_functions.cpp \
cso_table.cpp \
+ gpt7702.cpp \
gpt_commutation_functions.cpp \
- gpt_test.cpp \
- irc7702.cpp
+ gpt_test.cpp
gpt_test_CXXFLAGS = $(AM_CXXFLAGS)
gpt_test_LDADD = \
libtest_common.la
@@ -1186,6 +1186,7 @@ noinst_HEADERS = \
fund_data.hpp \
getopt.hpp \
global_settings.hpp \
+ gpt7702.hpp \
gpt_commutation_functions.hpp \
gpt_document.hpp \
gpt_input.hpp \
@@ -1215,7 +1216,6 @@ noinst_HEADERS = \
input_sequence_parser.hpp \
interest_rates.hpp \
interpolate_string.hpp \
- irc7702.hpp \
irc7702_tables.hpp \
istream_to_string.hpp \
ledger.hpp \
diff --git a/irc7702.cpp b/gpt7702.cpp
similarity index 94%
rename from irc7702.cpp
rename to gpt7702.cpp
index a5cd5e5..88d2eba 100644
--- a/irc7702.cpp
+++ b/gpt7702.cpp
@@ -21,6 +21,6 @@
#include "pchfile.hpp"
-#include "irc7702.hpp"
+#include "gpt7702.hpp"
-// implementation of class irc7702
+// implementation of class gpt7702
diff --git a/irc7702.hpp b/gpt7702.hpp
similarity index 92%
rename from irc7702.hpp
rename to gpt7702.hpp
index d63fe82..da96145 100644
--- a/irc7702.hpp
+++ b/gpt7702.hpp
@@ -19,13 +19,13 @@
// email: <gchicares@sbcglobal.net>
// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
-#ifndef irc7702_hpp
-#define irc7702_hpp
+#ifndef gpt7702_hpp
+#define gpt7702_hpp
#include "config.hpp"
-class irc7702
+class gpt7702
{
};
-#endif // irc7702_hpp
+#endif // gpt7702_hpp
diff --git a/gpt_commutation_functions.hpp b/gpt_commutation_functions.hpp
index 151946e..fd58b3b 100644
--- a/gpt_commutation_functions.hpp
+++ b/gpt_commutation_functions.hpp
@@ -73,7 +73,7 @@ struct gpt_vector_parms
///
/// Includes all scalar parameters that are
/// - used identically for calculating both GLP and GSP; or
-/// - required to initialize an object of class irc7702; or
+/// - required to initialize an object of class gpt7702; or
/// - otherwise useful for GPT processing.
///
/// The 'oenum_glp_or_gsp' calculate_premium() argument is excluded
diff --git a/gpt_test.cpp b/gpt_test.cpp
index 541a04e..b6fe89f 100644
--- a/gpt_test.cpp
+++ b/gpt_test.cpp
@@ -21,7 +21,7 @@
#include "pchfile.hpp"
-#include "irc7702.hpp"
+#include "gpt7702.hpp"
#include "assert_lmi.hpp"
#include "cso_table.hpp"
diff --git a/objects.make b/objects.make
index dcf2179..6c253e0 100644
--- a/objects.make
+++ b/objects.make
@@ -256,6 +256,7 @@ lmi_common_objects := \
cso_table.o \
financial.o \
fund_data.o \
+ gpt7702.o \
gpt_commutation_functions.o \
gpt_input.o \
gpt_server.o \
@@ -274,7 +275,6 @@ lmi_common_objects := \
ihs_irc7702a.o \
ihs_mortal.o \
ihs_server7702.o \
- irc7702.o \
irc7702_tables.o \
lingo.o \
lmi.o \
@@ -660,9 +660,9 @@ gpt_test$(EXEEXT): \
$(common_test_objects) \
commutation_functions.o \
cso_table.o \
+ gpt7702.o \
gpt_commutation_functions.o \
gpt_test.o \
- irc7702.o \
handle_exceptions_test$(EXEEXT): \
$(common_test_objects) \