summaryrefslogtreecommitdiffstats
path: root/c++/src
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-03-09 21:22:07 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-03-09 21:22:07 (GMT)
commit07d07eaae57218124c7c87a8f23f4d106ac15d2a (patch)
tree4924d0d4ba2e921f053a25eee4f9a1c9930768e5 /c++/src
parent5e875649d5968f262f12d7b9969eeb48f872e450 (diff)
downloadhdf5-07d07eaae57218124c7c87a8f23f4d106ac15d2a.zip
hdf5-07d07eaae57218124c7c87a8f23f4d106ac15d2a.tar.gz
hdf5-07d07eaae57218124c7c87a8f23f4d106ac15d2a.tar.bz2
[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:
Diffstat (limited to 'c++/src')
-rw-r--r--c++/src/H5IdComponent.cpp15
1 files 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 <iostream>
+#endif /*H5_VMS*/
#include <string>
#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