summaryrefslogtreecommitdiff
path: root/lib/Variables.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-26 23:11:40 +0000
committerPixel <Pixel>2001-11-26 23:11:40 +0000
commit3baa9d168c02a8734b95d1cc467601b6aaf2f6e4 (patch)
tree6c254e9d75dee5a1e305283788fea3d3fff2a445 /lib/Variables.cc
parent3aa63fcbddbce8762ad0f3f54d90ad985c0f9c41 (diff)
Big job here. Many bugs out. Hurray!!
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...
+ }
}
}