[svn-r12180] Purpose: Maintenance

Description:
    Added alias H5_std so either the global or std namespace can be
    used, depending on H5_NO_STD.

Platforms tested:
    Linux 2.4 (heping)
    SunOS 5.8 64-bit (sol)
    AIX 5.1 (copper)
This commit is contained in:
Binh-Minh Ribler
2006-03-30 13:06:58 -05:00
parent 5a90c6b31c
commit a7e993d72b
64 changed files with 287 additions and 372 deletions

View File

@@ -20,9 +20,6 @@
#include <string>
#ifndef H5_NO_NAMESPACE
#ifndef H5_NO_STD
using std::string;
#endif // H5_NO_STD
#endif
#include "H5Include.h"
@@ -102,7 +99,7 @@ H5File::H5File( const char* name, unsigned int flags, const FileCreatPropList& c
/// FileCreatPropList::DEFAULT
// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
H5File::H5File( const string& name, unsigned int flags, const FileCreatPropList& create_plist, const FileAccPropList& access_plist ) : IdComponent()
H5File::H5File( const H5_std::string& name, unsigned int flags, const FileCreatPropList& create_plist, const FileAccPropList& access_plist ) : IdComponent()
{
p_get_file(name.c_str(), flags, create_plist, access_plist);
}
@@ -196,7 +193,7 @@ bool H5File::isHdf5(const char* name)
///\param name - IN: Name of the file - \c std::string
// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
bool H5File::isHdf5(const string& name )
bool H5File::isHdf5(const H5_std::string& name )
{
return( isHdf5( name.c_str()) );
}
@@ -239,7 +236,7 @@ void H5File::openFile(const char* name, unsigned int flags, const FileAccPropLis
/// FileAccPropList::DEFAULT
// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void H5File::openFile(const string& name, unsigned int flags, const FileAccPropList& access_plist)
void H5File::openFile(const H5_std::string& name, unsigned int flags, const FileAccPropList& access_plist)
{
openFile(name.c_str(), flags, access_plist);
}
@@ -497,7 +494,7 @@ void H5File::getVFDHandle(void **file_handle) const
///\exception H5::IdComponentException
// Programmer Binh-Minh Ribler - Jul, 2004
//--------------------------------------------------------------------------
string H5File::getFileName() const
H5_std::string H5File::getFileName() const
{
try {
return(p_get_file_name());
@@ -564,7 +561,7 @@ void* H5File::Reference(const char* name) const
///\param name - IN: Name of the object to be referenced - \c std::string
// Programmer Binh-Minh Ribler - May, 2004
//--------------------------------------------------------------------------
void* H5File::Reference(const string& name) const
void* H5File::Reference(const H5_std::string& name) const
{
return(Reference(name.c_str()));
}
@@ -678,9 +675,9 @@ void H5File::close()
// implementation of H5File.
// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
void H5File::throwException(const string func_name, const string msg) const
void H5File::throwException(const H5_std::string func_name, const H5_std::string msg) const
{
string full_name = func_name;
H5_std::string full_name = func_name;
full_name.insert(0, "H5File::");
throw FileIException(full_name, msg);
}