diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-08-18 22:16:56 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-08-18 22:16:56 (GMT) |
commit | 6496413284a3319bc41ad3ebde3783bae02d6e23 (patch) | |
tree | 0d46e5948389c2e64b75a56b9d73789c44a8f16b /c++/src/H5IdComponent.h | |
parent | f27f7c7821350c31dc252cca2b875ae35e5516db (diff) | |
download | hdf5-6496413284a3319bc41ad3ebde3783bae02d6e23.zip hdf5-6496413284a3319bc41ad3ebde3783bae02d6e23.tar.gz hdf5-6496413284a3319bc41ad3ebde3783bae02d6e23.tar.bz2 |
[svn-r11264] Purpose: Additional code improvement
Description:
Used "using" declaration and directive better to reduce namespace
pollution.
Platforms tested:
Linux 2.4 (heping)
SunOS 5.8 64-bit (sol)
Diffstat (limited to 'c++/src/H5IdComponent.h')
-rw-r--r-- | c++/src/H5IdComponent.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c++/src/H5IdComponent.h b/c++/src/H5IdComponent.h index 33fa7d2..5648380 100644 --- a/c++/src/H5IdComponent.h +++ b/c++/src/H5IdComponent.h @@ -61,10 +61,18 @@ class H5_DLLCPP IdComponent { // Makes and returns the string "<class-name>::<func_name>"; // <class-name> is returned by fromClass(). +#ifdef H5_NO_STD string inMemFunc(const char* func_name) const; +#else + std::string inMemFunc(const char* func_name) const; +#endif // H5_NO_STD // Returns this class name. +#ifdef H5_NO_STD virtual string fromClass() const {return ("IdComponent");} +#else + virtual std::string fromClass() const {return ("IdComponent");} +#endif // H5_NO_STD #endif // DOXYGEN_SHOULD_SKIP_THIS |