43 #include "Teuchos_Assert.hpp" 52 "FileInputStream ctor failed to open file: " 57 const unsigned int maxToRead)
60 #
if defined(ICL) || defined(__sgi)
67 int n = std::fread((
void*) toFill,
sizeof(
char), maxToRead, file_);
68 if (n==0)
return (
size_t)0;
72 #if defined(ICL) || defined(__sgi) 80 n < 0 || (n<(
int) maxToRead && !is_eof),
82 "FileInputStream::readBytes error" #define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.