From 07d07eaae57218124c7c87a8f23f4d106ac15d2a Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Thu, 9 Mar 2006 16:22:07 -0500 Subject: [svn-r12052] Purpose: VMS port Description: insert method didn't work for VMS. Solution: Used append methos to form the string; this may become the change for all platforms after more testing Platforms tested: heping, VMS server Misc. update: --- c++/src/H5IdComponent.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/c++/src/H5IdComponent.cpp b/c++/src/H5IdComponent.cpp index c6cf92e..f5eb34e 100644 --- a/c++/src/H5IdComponent.cpp +++ b/c++/src/H5IdComponent.cpp @@ -11,11 +11,16 @@ * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - +#ifdef H5_VMS +#include +#endif /*H5_VMS*/ #include #ifndef H5_NO_NAMESPACE #ifndef H5_NO_STD using std::string; +#ifdef /*H5_VMS*/ + using std::count; +#endif /*H5_VMS*/ #endif // H5_NO_STD #endif @@ -248,7 +253,6 @@ IdComponent::~IdComponent() { // // Implementation of protected functions for HDF5 Reference Interface. // - #ifndef DOXYGEN_SHOULD_SKIP_THIS //-------------------------------------------------------------------------- // Function: IdComponent::inMemFunc @@ -264,9 +268,15 @@ IdComponent::~IdComponent() { //-------------------------------------------------------------------------- string IdComponent::inMemFunc(const char* func_name) const { +#ifdef H5_VMS + string full_name = fromClass(); + full_name.append("::"); + full_name.append(func_name); +#else string full_name = func_name; full_name.insert(0, "::"); full_name.insert(0, fromClass()); +#endif /*H5_VMS*/ return (full_name); } @@ -400,7 +410,6 @@ bool IdComponent::p_valid_id(const hid_t obj_id) const else return true; } - #endif // DOXYGEN_SHOULD_SKIP_THIS #ifndef H5_NO_NAMESPACE -- cgit v0.12