summaryrefslogtreecommitdiff
path: root/project2/fileStrmVarWriter.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-08-09 19:46:16 +0000
committerrandomdan <randomdan@localhost>2011-08-09 19:46:16 +0000
commit7699d617956abd15215751570e0f8e3e328eca8d (patch)
treeecddb09d16b94fcfaa14bc8f41e9db7dbfbe053d /project2/fileStrmVarWriter.cpp
parentRemove the long since pointless complication of RowUsers and variable value c... (diff)
downloadproject2-7699d617956abd15215751570e0f8e3e328eca8d.tar.bz2
project2-7699d617956abd15215751570e0f8e3e328eca8d.tar.xz
project2-7699d617956abd15215751570e0f8e3e328eca8d.zip
Strip out some dead wood
Fix a few small things But many fix the big idiot problem with storing state in the rowset instance
Diffstat (limited to 'project2/fileStrmVarWriter.cpp')
-rw-r--r--project2/fileStrmVarWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/project2/fileStrmVarWriter.cpp b/project2/fileStrmVarWriter.cpp
index 1af99dc..51fb487 100644
--- a/project2/fileStrmVarWriter.cpp
+++ b/project2/fileStrmVarWriter.cpp
@@ -49,9 +49,11 @@ void FileStreamVariableWriter::operator()(const double & i) const {
fprintf(out, "%g", i);
}
void FileStreamVariableWriter::operator()(const Glib::ustring & i) const {
+ fputc('\'', out);
if (fwrite(i.c_str(), i.bytes(), 1, out) < 1) {
// Care much? None of the others check.
}
+ fputc('\'', out);
}
void FileStreamVariableWriter::operator()(const boost::posix_time::ptime & i) const {
fprintf(out, "[%s]", boost::posix_time::to_iso_extended_string(i).c_str());