make really sure load_mupa has a file to parse.
authorDiane Trout <diane@caltech.edu>
Sat, 9 Sep 2006 00:08:34 +0000 (00:08 +0000)
committerDiane Trout <diane@caltech.edu>
Sat, 9 Sep 2006 00:08:34 +0000 (00:08 +0000)
commitb5fea3cb1384da2f2afd7b262737744d5e817f04
tree15afb669b35bd20e1e852ab901489cee00307506
parentb99f9cb5ab110260ec476acf09a564255ecc7b1a
make really sure load_mupa has a file to parse.
Fixes ticket:121
This includes more filesystem checks to make sure we're reading something
that's a file, and instead of doing fstream.eof() this uses the more
general bool converter for the stream. Which I think is equivalent to
fstream::good() (a more general test than fstream::eof() )
alg/mussa.cpp
alg/test/test_mussa.cpp