mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
Fixed EED-319
Description: - Fixed doc issue Added an html version for the C++ function mapping table and removed the single web page version. Updated cpp_doc_config to use the html file. - Added a couple more minor tests
This commit is contained in:
parent
9a306f8311
commit
dd0a040ec8
24268
c++/src/C2Cppfunction_map.htm
Normal file
24268
c++/src/C2Cppfunction_map.htm
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -48,7 +48,7 @@
|
||||
Datatype Interface (H5T) DataType and subclasses
|
||||
\endverbatim
|
||||
*
|
||||
* This <a href="./C2Cppfunction_map.mht">
|
||||
* This <a href="./C2Cppfunction_map.htm">
|
||||
* table </a> provides a map from the C APIs to the C++ member functions.
|
||||
* <br />
|
||||
* \section install_sec Installation
|
||||
|
@ -1140,7 +1140,7 @@ HTML_EXTRA_STYLESHEET =
|
||||
# This tag requires that the tag GENERATE_HTML is set to YES.
|
||||
|
||||
HTML_EXTRA_FILES = ./header_files/help.jpg \
|
||||
./C2Cppfunction_map.mht
|
||||
./C2Cppfunction_map.htm
|
||||
|
||||
# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
|
||||
# will adjust the colors in the stylesheet and background images according to
|
||||
|
@ -1070,7 +1070,7 @@ static void test_operators()
|
||||
// Test with EnumType
|
||||
//
|
||||
|
||||
// Create a enumerate datatype
|
||||
// Create an enumerate datatype
|
||||
EnumType enumtyp(sizeof(short));
|
||||
|
||||
enumtyp.insert("RED", (enum_val=0,&enum_val));
|
||||
@ -1085,17 +1085,26 @@ static void test_operators()
|
||||
// Test with compound datatype's member
|
||||
//
|
||||
|
||||
// Create a variable-length string type
|
||||
// Create random atomic datatypes
|
||||
IntType inttyp(PredType::NATIVE_INT);
|
||||
FloatType flttyp(PredType::NATIVE_FLOAT);
|
||||
|
||||
// Get NATIVE_INT member from the compound datatype above
|
||||
// Get the NATIVE_INT member from the compound datatype above
|
||||
IntType member_inttyp = cmptyp.getMemberIntType(0);
|
||||
|
||||
// Test various combinations
|
||||
verify_val(inttyp == member_inttyp, true, "DataType::operator==", __LINE__, __FILE__);
|
||||
verify_val(flttyp == member_inttyp, false, "DataType::operator==", __LINE__, __FILE__);
|
||||
verify_val(flttyp != member_inttyp, true, "DataType::operator==", __LINE__, __FILE__);
|
||||
|
||||
// Get the NATIVE_LONG member from the compound datatype above
|
||||
IntType member_longtyp = cmptyp.getMemberIntType(2);
|
||||
|
||||
// Test various combinations
|
||||
verify_val(inttyp == member_longtyp, false, "DataType::operator==", __LINE__, __FILE__);
|
||||
verify_val(flttyp == member_longtyp, false, "DataType::operator==", __LINE__, __FILE__);
|
||||
verify_val(flttyp != member_longtyp, true, "DataType::operator==", __LINE__, __FILE__);
|
||||
|
||||
PASSED();
|
||||
}
|
||||
catch (Exception& E)
|
||||
|
Loading…
Reference in New Issue
Block a user