[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [5950] For testing, optionally emit an '.ill' file transla
From: |
Greg Chicares |
Subject: |
[lmi-commits] [5950] For testing, optionally emit an '.ill' file translated from '.inix' |
Date: |
Tue, 30 Sep 2014 11:17:24 +0000 |
Revision: 5950
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5950
Author: chicares
Date: 2014-09-30 11:17:23 +0000 (Tue, 30 Sep 2014)
Log Message:
-----------
For testing, optionally emit an '.ill' file translated from '.inix'
Modified Paths:
--------------
lmi/trunk/custom_io_1.cpp
Modified: lmi/trunk/custom_io_1.cpp
===================================================================
--- lmi/trunk/custom_io_1.cpp 2014-09-30 11:06:15 UTC (rev 5949)
+++ lmi/trunk/custom_io_1.cpp 2014-09-30 11:17:23 UTC (rev 5950)
@@ -36,7 +36,9 @@
#include "ledger.hpp"
#include "ledger_invariant.hpp"
#include "ledger_variant.hpp"
+#include "miscellany.hpp" // ios_out_trunc_binary()
#include "platform_dependent.hpp" // access()
+#include "single_cell_document.hpp"
#include "value_cast.hpp"
#include "xml_lmi.hpp"
@@ -274,6 +276,14 @@
z["AgentPhone" ] = AgentPhone;
z["AgentId" ] = AgentLicense;
+ // For internal testing only, if "AutoClose" has this special
+ // value, then write input in lmi's usual format.
+ if("X" == AutoClose)
+ {
+ std::ofstream ofs("custom_io_1.ill", ios_out_trunc_binary());
+ single_cell_document(z).write(ofs);
+ }
+
// Meaning of return code based on "AutoClose":
// if "N", then write both PDF and custom output file;
// else, write custom output file only.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [5950] For testing, optionally emit an '.ill' file translated from '.inix',
Greg Chicares <=