Clean up/standardize handling of various output files.
authorSteve Reinhardt <stever@eecs.umich.edu>
Wed, 20 Oct 2004 00:00:20 +0000 (20:00 -0400)
committerSteve Reinhardt <stever@eecs.umich.edu>
Wed, 20 Oct 2004 00:00:20 +0000 (20:00 -0400)
commitf267dc4a8729179ed99ec591af2ba434cb644755
tree83f1263d80cd74acd8e617b988290239cfdada5a
parentf0aed43b93c133a617a5260911777a9434f6b76c
Clean up/standardize handling of various output files.
No more non-intuitive behavior shifts depending on whether
outputDirectory is set (at the expense of backwards compatibility).
outputDirectory is now always valid, defaults to ".".

dev/etherdump.cc:
    Use makeOutputStream() to create output file.
    New behavior: actually complain if dump file can't
    be opened, instead of quietly ignoring the problem.
dev/etherdump.hh:
dev/simconsole.cc:
dev/simconsole.hh:
    Use makeOutputStream() to create output file.
sim/builder.cc:
sim/builder.hh:
sim/main.cc:
    builderStream() is now *configStream.
sim/serialize.cc:
    outputDirectory is now always valid, no need to check.
sim/universe.cc:
    Clean up/standardize handling of various output files.
    No more non-intuitive behavior shifts depending on whether
    outputDirectory is set (at the expense of backwards compatibility).
    outputDirectory is now always valid, defaults to ".".
    New function makeOutputStream() does "the right thing" to
    associate a stream with a filename.

--HG--
extra : convert_revision : a03c58c547221b3906e0d6f55e4a569843f2d646
dev/etherdump.cc
dev/etherdump.hh
dev/simconsole.cc
dev/simconsole.hh
sim/builder.cc
sim/builder.hh
sim/main.cc
sim/serialize.cc
sim/universe.cc