summaryrefslogtreecommitdiff
path: root/lib/Variables.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Variables.cc')
-rw-r--r--lib/Variables.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Variables.cc b/lib/Variables.cc
index 0bb8c01..6b23d9c 100644
--- a/lib/Variables.cc
+++ b/lib/Variables.cc
@@ -37,7 +37,7 @@ int Variables::GetNb(void) {
return nbvars;
}
-void Variables::Dump(Handle * h) {
+void Variables::Dump(Handle * h, const String & format) {
int i, eqp;
String Vn, Vv;
@@ -45,7 +45,11 @@ void Variables::Dump(Handle * h) {
eqp = Vars[i].strchr('=');
Vn = Vars[i].extract(0, eqp - 1);
Vv = Vars[i].extract(eqp + 1);
- (*h) << "<INPUT TYPE=\"HIDDEN\" NAME=\"" << Vn << "\" VALUE=\"" << Vv << "\">" << endnl;
+ if (format == "") {
+ (*h) << "<INPUT TYPE=\"HIDDEN\" NAME=\"" << Vn << "\" VALUE=\"" << Vv << "\">" << endnl;
+ } else {
+ // Use format here...
+ }
}
}