lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [5898] Add GPT to CLI


From: Greg Chicares
Subject: [lmi-commits] [5898] Add GPT to CLI
Date: Tue, 17 Jun 2014 23:42:12 +0000

Revision: 5898
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5898
Author:   chicares
Date:     2014-06-17 23:42:11 +0000 (Tue, 17 Jun 2014)
Log Message:
-----------
Add GPT to CLI

Modified Paths:
--------------
    lmi/trunk/antediluvian_stubs.cpp
    lmi/trunk/main_cli.cpp

Modified: lmi/trunk/antediluvian_stubs.cpp
===================================================================
--- lmi/trunk/antediluvian_stubs.cpp    2014-06-16 23:23:10 UTC (rev 5897)
+++ lmi/trunk/antediluvian_stubs.cpp    2014-06-17 23:42:11 UTC (rev 5898)
@@ -26,6 +26,7 @@
 #   pragma hdrstop
 #endif // __BORLANDC__
 
+#include "gpt_server.hpp"
 #include "lmi.hpp"                      // is_antediluvian_fork()
 #include "mec_server.hpp"
 #include "product_data.hpp"
@@ -52,6 +53,46 @@
     return true;
 }
 
+gpt_server::gpt_server(mcenum_emission)
+{}
+
+gpt_server::~gpt_server()
+{}
+
+bool gpt_server::operator()(fs::path const&)
+{
+    return false;
+}
+
+template class xml_serializable<gpt_state>;
+
+gpt_state::gpt_state()
+{}
+
+gpt_state::gpt_state(gpt_state const&)
+    :obstruct_slicing  <gpt_state>()
+    ,xml_serializable  <gpt_state>()
+    ,MemberSymbolTable <gpt_state>()
+{}
+
+gpt_state::~gpt_state()
+{}
+
+int gpt_state::class_version() const
+{
+    return 0;
+}
+
+std::string const& gpt_state::xml_root_name() const
+{
+    return empty_string;
+}
+
+bool gpt_state::is_detritus(std::string const&) const
+{
+    return false;
+}
+
 mec_server::mec_server(mcenum_emission)
 {}
 

Modified: lmi/trunk/main_cli.cpp
===================================================================
--- lmi/trunk/main_cli.cpp      2014-06-16 23:23:10 UTC (rev 5897)
+++ lmi/trunk/main_cli.cpp      2014-06-17 23:42:11 UTC (rev 5898)
@@ -32,6 +32,7 @@
 #include "dbdict.hpp"            // print_databases()
 #include "getopt.hpp"
 #include "global_settings.hpp"
+#include "gpt_server.hpp"
 #include "illustrator.hpp"
 #include "input.hpp"
 #include "ledger.hpp"
@@ -190,6 +191,7 @@
 
     std::vector<std::string> illustrator_names;
     std::vector<std::string> mec_server_names;
+    std::vector<std::string> gpt_server_names;
 
     int digit_optind = 0;
     int this_option_optind = 1;
@@ -317,6 +319,10 @@
                     {
                     mec_server_names.push_back(getopt_long.optarg);
                     }
+                else if(".gpt" == e)
+                    {
+                    gpt_server_names.push_back(getopt_long.optarg);
+                    }
                 else
                     {
                     warning()
@@ -444,6 +450,12 @@
         ,mec_server_names.end()
         ,mec_server(emission)
         );
+
+    std::for_each
+        (gpt_server_names.begin()
+        ,gpt_server_names.end()
+        ,gpt_server(emission)
+        );
 }
 
 int try_main(int argc, char* argv[])




reply via email to

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