34 static ossimTrace traceDebug(
"ossimH5Info:debug");
59 H5::Exception::dontPrint();
61 if ( H5::H5File::isHdf5( file.
string() ) )
67 catch(
const H5::Exception& e )
76 <<
"ossimH5Info::open WARNING Caught unhandled exception for file:\n" 77 << file.
c_str() << std::endl;
87 static const char MODULE[] =
"ossimH5Info::open";
92 << MODULE <<
" entered..." 106 H5::Exception::dontPrint();
108 H5::H5File* h5File =
new H5::H5File();
110 H5::FileAccPropList access_plist = H5::FileAccPropList::DEFAULT;
112 h5File->openFile(
m_file.
string(), H5F_ACC_RDONLY, access_plist );
124 catch(
const H5::Exception& e )
133 <<
"ossimH5Info::print WARNIN: Caught unhandled exception!"
std::ostream & print(H5::H5File *file, std::ostream &out)
Print method.
std::string::size_type size() const
virtual ~ossimH5Info()
virtual destructor
virtual std::ostream & print(std::ostream &out) const
Print method.
virtual bool open(const ossimFilename &file)
open method.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
ossimH5Info()
default constructor
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.
const std::string & string() const