diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2006-04-05 16:50:56 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2006-04-05 16:50:56 (GMT) |
commit | e36db373ef271a1e4e87c891942b24701941863a (patch) | |
tree | aef50159182e8234d54cd2e1b426c8bdd0f1a52b /c++/test/th5s.cpp | |
parent | 69a959c55bb4f1f3e5f1f44d93a56380c0e28889 (diff) | |
download | hdf5-e36db373ef271a1e4e87c891942b24701941863a.zip hdf5-e36db373ef271a1e4e87c891942b24701941863a.tar.gz hdf5-e36db373ef271a1e4e87c891942b24701941863a.tar.bz2 |
[svn-r12202] Purpose: Maintenance
Description:
Changed to alias string instead of std, i.e. H5std_string instead
of H5std, because the old way wasn't working when std didn't exist.
Platforms tested:
Linux 2.4 (heping)
SunOS 5.8 64-bit (sol)
HPUX 11.00 (kelgia) - this was the problematic platform but I wasn't
able to test before.
Diffstat (limited to 'c++/test/th5s.cpp')
-rw-r--r-- | c++/test/th5s.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/c++/test/th5s.cpp b/c++/test/th5s.cpp index b54d89f..4e98a4e 100644 --- a/c++/test/th5s.cpp +++ b/c++/test/th5s.cpp @@ -40,23 +40,22 @@ #ifndef H5_NO_NAMESPACE using namespace H5; - using H5_std::string; #endif #include "h5cpputil.h" // C++ utilility header file -const string TESTFILE("th5s.h5"); -const string DATAFILE("th5s1.h5"); +const H5std_string TESTFILE("th5s.h5"); +const H5std_string DATAFILE("th5s1.h5"); /* 3-D dataset with fixed dimensions */ -const string SPACE1_NAME("Space1"); +const H5std_string SPACE1_NAME("Space1"); const int SPACE1_RANK = 3; const int SPACE1_DIM1 = 3; const int SPACE1_DIM2 = 15; const int SPACE1_DIM3 = 13; /* 4-D dataset with one unlimited dimension */ -const string SPACE2_NAME("Space2"); +const H5std_string SPACE2_NAME("Space2"); const int SPACE2_RANK = 4; const int SPACE2_DIM1 = 0; const int SPACE2_DIM2 = 15; @@ -68,16 +67,16 @@ const hsize_t SPACE2_MAX3 = 13; const hsize_t SPACE2_MAX4 = 23; /* Scalar dataset with simple datatype */ -const string SPACE3_NAME("Scalar1"); +const H5std_string SPACE3_NAME("Scalar1"); const int SPACE3_RANK = 0; unsigned space3_data=65; /* Scalar dataset with compound datatype */ -const string SPACE4_NAME("Scalar2"); -const string SPACE4_FIELDNAME1("c1"); -const string SPACE4_FIELDNAME2("u"); -const string SPACE4_FIELDNAME3("f"); -const string SPACE4_FIELDNAME4("c2"); +const H5std_string SPACE4_NAME("Scalar2"); +const H5std_string SPACE4_FIELDNAME1("c1"); +const H5std_string SPACE4_FIELDNAME2("u"); +const H5std_string SPACE4_FIELDNAME3("f"); +const H5std_string SPACE4_FIELDNAME4("c2"); size_t space4_field1_off=0; size_t space4_field2_off=0; size_t space4_field3_off=0; |