Commit Graph

116 Commits

Author SHA1 Message Date
Binh-Minh Ribler
7b5b696bc4 [svn-r4713]
Purpose:
    Removing warnings
Description:
    H5IdComponent::operator= shouldn't be virtual because the subclass'
    operator= have different type for the rhs argument.  Removed virtual.
Platforms tested:
    SunOS 5.7 (arabica)
    Linux 6.2 (eirene)
2001-12-12 22:54:15 -05:00
Binh-Minh Ribler
fd48265a02 [svn-r4707]
Purpose:
    Bug fixing
Description:
    H5IdComponent::operator= shouldn't be virtual because the subclass'
    operator= have different type for the rhs argument.  Removed virtual
Platforms tested:
    SunOS 5.7 (arabica)
    IRIX64 (modi4) - only tested that the warnings went away, still working
                        on other configuration problems.
2001-12-12 14:29:14 -05:00
Bill Wendling
c597c46ae4 [svn-r4688]
Purpose:
	Bug Fix
Description & Solution:
	In the test for "namespace", we needed to include the "iostream"
	header file to remove errors for strict compilers who need iostream
	for namespaces. I moved the test for namespace to after the test for
	"old header filenames" to make sure that I'm #including the correct
	iostream ("iostream" or "iostream.h").
Platforms tested:
	Linux
2001-12-10 13:37:44 -05:00
Quincey Koziol
7a30de3a2b [svn-r4680] Purpose:
Code cleanup
Description:
    Property that H5P(g|s)et_hyper_cache uses is no longer in use inside the
    library.
Solution:
    Removed H5P(g|s)et_hyper_cache API functions, except when backward
    compatibility is turned on.  When backward compatibility is turned on,
    the property is defined by the library, but unused internally.
Platforms tested:
    FreeBSD 4.4 (sleipnir)
2001-12-06 14:05:12 -05:00
Quincey Koziol
6ecbcc1717 [svn-r4676] Purpose:
Backward Compatibility Fix
Description:
    One of H5P[gs]et_buffer's parameters changed between v1.4 and the
    development branch.
Solution:
    Added v1.4 compat stuff around H5P[gs]et_buffer implementation and testing
    to allow v1.4.x users to continue to use their source code without
    modification.

    These changes are for everything except the FORTRAN wrappers - I spoke with
    Elena and she will make the FORTRAN wrapper changes.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-12-05 15:26:39 -05:00
Quincey Koziol
4886a6c447 [svn-r4670] Purpose:
Backward Compatibility Fix
Description:
    One of H5P[gs]et_sym_k's parameters changed between v1.4 and the development
    branch.
Solution:
    Added v1.4 compat stuff around H5P[gs]et_sym_k implementation and testing
    to allow v1.4.x users to continue to use their source code without
    modification.

    These changes are for everything except the FORTRAN wrappers - I spoke with
    Elena and she will make the FORTRAN wrapper changes.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-12-05 11:42:40 -05:00
Quincey Koziol
a9c747deba [svn-r4669] Purpose:
Backward Compatibility Fix
Description:
    One of H5P[gs]et_cache's parameters changed between v1.4 and the development
    branch.
Solution:
    Added v1.4 compat stuff around H5P[gs]et_cache implementation and testing
    to allow v1.4.x users to continue to use their source code without
    modification.

    These changes are for everything except the FORTRAN wrappers - I spoke with
    Elena and she will make the FORTRAN wrapper changes.
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-12-05 11:12:32 -05:00
Binh-Minh Ribler
2167e3c495 [svn-r4668]
Purpose:
    Eliminated warnings
Description:
    On IRIX and Windows 98, if a function, that returns a value, throws
    an exception in "else" statement, the compiler still complains that
    the function doesn't return a value.
Solution:
    Replaced:
	if (something valid)
	    return a value
	else
	    throw an exception

    with:
	if (something invalid)
	    throw an exception
	return a value
Platforms tested:
    Windows 98
    SunOS 5.7 (arabica)
    Linux 6.2 (eirene)
    IRIX64 (modi4) - only tested that the warnings went away, still working
			on other configuration problems.
2001-12-05 11:03:14 -05:00
Elena Pourmal
76e9fe7298 [svn-r4658]
Purpose:
    Maintenance
Description:
    Added configuration file for SP3 to support C++
Platforms tested:
    NERSC SP3
2001-11-28 15:55:43 -05:00
Binh-Minh Ribler
5077ac0c90 [svn-r4605]
Purpose:
    Bug fix

Description:
    Add the overloaded member function Attribute::getName to return
    the attribute name's length as in C API.  This functionality was
    missing.  Note that the current getName that returns "string"
    is not removed, for different way of using getName.

Platforms tested:
    SunOS 5.7 (arabica)
    Windows 98
2001-11-14 17:14:05 -05:00
Binh-Minh Ribler
c84ad4179d [svn-r4604]
Purpose:
    Fixing found bug
Description:
    A data file cannot be removed because the corresponding H5File object
    is still in existence, which means the data file is still opened.
Solution:
    Moved h5_cleanup to outside of the try block so that the H5File object
    will go out of scope and be destroyed before h5_cleanup attempts to
    remove the corresponding data file.
Platforms tested:
    SunOS 5.7 (arabica)
    Windows 98
2001-11-13 17:15:47 -05:00
Binh-Minh Ribler
55de078e47 [svn-r4594]
Purpose:
    Minor code cleanup
Description:
    Removed unused variables, that were complained by Windows.
Platforms tested:
    SunOS 5.7 (arabica)
    Windows 98
2001-11-07 22:40:00 -05:00
Raymond Lu
ec59e5f52a [svn-r4583]
Purpose:
    Switch from old property list to new generic property list.
Description:
    Changed C++ according to the new generic property list.
Platforms tested:
    FreeBSD, SunOS 5.7.
2001-11-02 14:45:25 -05:00
Binh-Minh Ribler
1398cc0eef [svn-r4580]
Purpose:
    Bug fixing
Description:
    + added operator= to PredType
    + removed 'using namespace std' from H5RefCounter.cpp because it's not
        used and leaving it there requires #include some standard header file
    + added 'using namespace std' in H5Exception.cpp

Platforms tested:
    SunOS 5.7 (arabica)
    Windows 98
2001-10-31 11:01:35 -05:00
Raymond Lu
33189bd39b [svn-r4573]
Purpose:
    Switch mount property list to the new generic property list.
Platforms tested:
    IRIX64 6.5, SunOS 5.7, FreeBSD.
2001-10-25 14:52:10 -05:00
Raymond Lu
b6da4ea427 [svn-r4569]
Purpose:
    Generic Property List Change
Description:
    Changed file access list to the new generic list.
Platforms tested:
    IRIX64, SunOS5.7, FreeBSD
2001-10-24 13:02:27 -05:00
Quincey Koziol
0cec5adf06 [svn-r4553] Purpose:
Bug fix.
Description:
    Fix int/unsigned problem in C++ wrapper API
Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-10-17 09:57:53 -05:00
Raymond Lu
05eb7b7a84 [svn-r4542]
Purpose:
    Changed to the new generic property list.
Description:
    Took out H5P_FILE_CREATE from constructor definition.
2001-10-15 14:35:20 -05:00
Raymond Lu
7666ce56d3 [svn-r4516]
Purpose:
    Changed to the new generic property list
Platforms tested:
    Arabica and Hawkwind
2001-10-03 12:55:22 -05:00
Quincey Koziol
7a96b1a0d2 [svn-r4482] Purpose:
Kludge
Description:
    Since we're only about halfway through converting the internal use of
    property lists from the "old way" to the generic property lists, we turned
    off snapshots to avoid exposing lots of API changes to users, until the
    APIs settled down.

    Getting the snapshots rolling again seems to have become a priority, so
    some changes are going to have to be made now that were going to be
    postponed until we were completely finished with the conversion.  This
    requires that the old API functions be able to deal with both the old
    and new property lists smoothly.

Solution:
    Kludge together the property list code so that they can transparently handle
    dealing with both the old and new property lists

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-09-26 15:29:35 -05:00
Bill Wendling
7059a12450 [svn-r4467]
Purpose:
    Small Bug Fix
Description:
    Made 'install-all' its own Makefile rule.
Platforms tested:
    Linux
2001-09-21 18:52:37 -05:00
Bill Wendling
5e834c4cbc [svn-r4466]
Purpose:
    Feature Add
Description:
    Added "install-example" and "install-all" to the Makefile system.
    The behaviour of the "make install*" options:

        make install          - Installs binaries, libraries, include
                                files, and example programs.
        make install-examples - Installs only the example programs.
                                The directories are:

                            ${prefix}/doc/hdf5/examples/{c,c++,fortran}

        make install-all      - Install the binaries, libraries, include
                                files, example programs, and
                                documentation. The whole kit-n'-caboodle.
        make uninstall-examples - Get rid of those example files (but not
                                  the ${prefix}/doc/hdf5/examples/...
                                  directories)

    There's a new bin/ program which helps create directories which are
    deeply nested called "mkdirs". It's a simple shell script.
Platforms tested:
    Linux
2001-09-21 18:50:15 -05:00
Binh-Minh Ribler
a59795b546 [svn-r4366] Purpose:
Code cleanup

Description:
    Changed prototype for the buffer in Attribute::write from "void *"
    to "const void *"

Platforms tested:
    FreeBSD 4.4 (hawkwind)
    SunOS 5.7 (arabica)
    Linux 6.2 (eirene)
2001-08-16 08:06:37 -05:00
Quincey Koziol
e87fc517b8 [svn-r4355] Purpose:
Code cleanup (sorta)

Description:
    When the first versions of the HDF5 library were designed, I remembered
    vividly the difficulties of porting code from a 32-bit platform to a 16-bit
    platform and asked that people use intn & uintn instead of int & unsigned
    int, respectively.  However, in hindsight, this was overkill and
    unnecessary since we weren't going to be porting the HDF5 library to
    16-bit architectures.

    Currently, the extra uintn & intn typedefs are causing problems for users
    who'd like to include both the HDF5 and HDF4 header files in one source
    module (like Kent's h4toh5 library).

Solution:
    Changed the uintn & intn's to unsigned and int's respectively.

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-08-14 17:09:56 -05:00
Quincey Koziol
95862451f7 [svn-r4324] Purpose:
New Features!
Description:
    Start migrating the internal use of property lists in the library from the
    older implementation to the new generic property lists.

    Currently, only the dataset transfer property lists are migrated to the
    new architecture, all the rest of the property list types are still using
    the older architecture.

    Also, the backward compatibility features are not implemented yet, so
    applications which use dataset transfer properties may need to make the
    following changes:
        H5Pcreate(H5P_DATASET_XFER) -> H5Pcreate_list(H5P_DATASET_XFER_NEW)
            and
        H5Pclose(<a dataset transfer property list>) -> H5Pclose_list(id)

    This still may have some bugs in it, especially with Fortran, but I should
    be wrapping up those later today.

Platforms tested:
    FreeBSD 4.4 (hawkwind)
2001-08-10 15:47:05 -05:00
Bill Wendling
73e6cacf08 [svn-r4298]
Purpose:
    Regenerated Dependencies Files
2001-08-01 17:18:50 -05:00
Bill Wendling
773719d3be [svn-r4293]
Purpose:
    Bug Fix
Description:
    Needed to add the PERL=@PERL@ line to the commence.in file.
Platforms tested:
    LInx
2001-08-01 16:12:08 -05:00
Bill Wendling
b5d11111b0 [svn-r4292]
Purpose:
    Bug Fix
Description:
    The way we were generating Dependencies and .depend files was broken.
    If the $srcdir or other macros began with a ".", then it would match
    anything and cause problems since it would then overwrite the
    beginning of the header file's path.
Solution:
    Wrote a Perl script which can handle this type of weirdness better.
    It's only used when the environment is a GNU one with a GCC
    compiler...
Platforms tested:
    Linux
2001-08-01 16:00:25 -05:00
Quincey Koziol
990fadfbe5 [svn-r4181] Purpose:
Bug Fix, Code Cleanup, Code Optimization, etc.
Description:
    Fold in the hyperslab speedups, clean up compile warnings and change a
    few things from using 'unsigned' or 'hsize_t' to use 'size_t' instead.
Platforms tested:
    FreeBSD 4.3 (hawkwind), Solaris 2.7 (arabica), Irix64 6.5 (modi4)
2001-07-10 16:19:18 -05:00
Bill Wendling
6f5d2e89ab [svn-r4136]
Purpose:
    Bug Fix
Description:
    We long ago changed the compiler flags to pick out dependencies to
    -MM instead of -M so that only #include "filename.h" type headers
    will be put into the .depend file.
Solution:
    Changed this flag.
Platforms tested:
    Linux
2001-07-06 14:27:37 -05:00
Bill Wendling
c9abea2e53 [svn-r3930] Purpose:
Fix
Description:
    Removed the redundant executables here. We just use the ones in the
    top-level of the tree.
Platforms tested:
    Linux
2001-05-15 13:00:20 -05:00
Bill Wendling
88feddb201 [svn-r3866] Purpose:
Bug Fix
Description:
    "make distclean" was removing the .h5 file.
Solution:
    Stopped it from doing that.
Platforms tested:
    Linux
2001-04-27 15:37:03 -05:00
Bill Wendling
7c15c639fa [svn-r3865] Purpose:
Bug Fix
Description:
    The "-$(RM)" was failing for make distclean.
Solution:
    Removed the "-".
Platforms tested:
    Linux
2001-04-27 15:05:30 -05:00
Bill Wendling
6f63dd75e3 [svn-r3814] Purpose:
Cleanup
Description:
    If there isn't anything to "remove" during the cleanup faze. This
    stops the "make clean"s from printing out:

        rm -f

    all of the time.
Solution:
    Check if hte macros have anything in them before calling the rm.
Platforms tested:
    Linux
2001-04-16 18:15:36 -05:00
Bill Wendling
cbab37d78c [svn-r3810] Purpose:
Update
Description:
    Removed test for zlib since the C++ library doesn't need it.
2001-04-13 12:20:03 -05:00
Quincey Koziol
3dce3d49fd [svn-r3807] Purpose:
Portability changes
Description:
    Very quick port to Compaq (nee DEC) Alpha OSF5.
Solution:
    Added a new "dec-osf5.x" configuration file and changed configure.in
    to look for it.
    The local test machine is now passing all the tests, except I can't get
    the "-L<path>" stuff to work, so tools which depend on the HDF4 library
    around tested.
Platforms tested:
    Compaq Alpha 5.1 (compaq.ncsa.uiuc.edu)
2001-04-13 09:55:05 -05:00
Bill Wendling
ef461a8454 [svn-r3804] Purpose:
Bug Fix
Description:
    If we need to specify a -R flag for dynamic libraries (like, in the
    case when we specify --with-hdf4), then this flag needs to be added
    to the linking line so that it will show up in the generated library
    and other programs linking to that library will be able to find the
    relevant libraries.
Solution:
    Added the DYNAMIC_DIRS macro to the link line.
Platforms tested:
    Arabica
2001-04-12 14:39:13 -05:00
Bill Wendling
9ccb328997 [svn-r3740] Purpose:
Bug Fix
Description:
    If the user specifies where to look for a library (like the zlib) on
    the commandline, then we add that directory to the LDFLAGS macro.
Solution:
    Copied the code which checks for this from the C configure.in. Also
    added code which checks for the --with-zlib flag since that wasn't in
    there.
Platforms tested:
    Linux
2001-03-30 14:40:29 -05:00
Binh-Minh Ribler
6f26403376 [svn-r3708] Purpose: Code cleanup and adding more test
Description:
    dsets.cpp:
	- Added routine's headers to be consistent with the C tests
	- Added the following tests (they are not in the C version
	test because they are C++ specific):
	    + Test copying a user-defined type using DataType::copy
	    + Test copying a user-defined type using DataType::operator=
	    + Test copying a user-defined int type using DataType::operator=
	    + Test copying an integer predefined type using a constructor
	    + Test copying an integer predefined type using DataType::operator=

    th5s.cpp:
	- Added routine's headers to be consistent with the C tests
	- Cleanup old couts and statements used during debugging

Platforms tested:
    arabica (sparc-sun-solaris 2.7)
2001-03-24 23:54:15 -05:00
Binh-Minh Ribler
ba6cba5d30 [svn-r3707] Purpose: Bug fixes and code clean up
Description and Solution:

	- Predefined type objects become outdated when the application calls
	H5close and then H5open to use the library again.

	Solution:
	    + Reimplemented PredType using enum type to obtain up-to-date
		values for predefined types, i.e. H5T_xxx_yyy's, when they
		are used.
	    + Added to PredType its own version of getId() to return the
		appropriate predefined type id according to the enum value.
	    + Made IdComponent::getId() a virtual function

	- Since Albert already fixed the "multiply defined RcsId" problem,
	removed the now become unnessary "#undef RCSID" from H5Include.h

	- Added a check for func_name != NULL in one of the Exception
	constructors because seg. fault. might occur in some situations.

	- It is more convenient to make a copy of a datatype, dataspace,
	or property list by using assignment operator

	Solution:
	    + Added assignment operator to DataType, DataSpace, and
		PropList so that they will invoke H5Tcopy, H5Scopy,
		and H5Pcopy, respectively, instead of just simply
		copying the data members as for other classes.  So,
		now a type, space, or property list can be copied by
		either :
			mytype = original_type, or
			mytype.copy(original_type)
		Note that copy constructors are still just copying the
		data members.
	    + Added an assignment operator to DataType that takes a
		predefined type.
	    + Made IdComponent::operator= a virtual function

Platforms tested:
	arabica (sparc-sun-solaris 2.7)
2001-03-24 23:37:22 -05:00
Bill Wendling
8ce26901ac [svn-r3646] Purpose:
Bug Fix
Description:
    Some of the modules weren't being compiled cause they weren't added
    to the TEST_OBJ macro.
Solution:
    Added them to the TEST_OBJ macro a la the C tests.
Platforms tested:
    Linux
2001-03-15 14:18:38 -05:00
Binh-Minh Ribler
e086674ee5 [svn-r3639]
Purpose:
    Adding data file for testing
Description:
    The dataspace test, th5s.cpp, needs this data file.
Solution:
    Added the file, using the copy of hdf5/test/th5s.h5
Platforms:
    arabica (sparc-sun-solaris 2.7)
2001-03-14 21:55:33 -05:00
Binh-Minh Ribler
7a05f6e2f1 [svn-r3635]
Purpose:
    Improve C++ API test output appearance
Description:
    The C++ API tests are not easy to be spotted because their output
    look similar to part of the C tests.
Solution:
    Added "C++ API:" in front of the C++ test titles.
Platforms tested:
    arabica (sparc-sun-solaris 2.7)
2001-03-14 17:50:44 -05:00
Binh-Minh Ribler
28bedc0fff [svn-r3627]
Purpose:
    Adding C++ API test
Description:
    Added th5s to Makefile.in
Platforms tested:
    arabica (sparc-sun-solaris 2.7)
2001-03-14 12:28:05 -05:00
Binh-Minh Ribler
014152842b [svn-r3625]
Purpose:
    Format and typos mostly
Description:
    Changed the "Copyright" header of some files so they will be consistent.
Platforms tested:
    arabica (sparc-sun-solaris 2.7)
2001-03-14 08:27:13 -05:00
Binh-Minh Ribler
8a32459871 [svn-r3624]
Purpose:
    Adding dataspace test to the C++ API
Platforms tested:
    arabica (sparc-sun-solaris 2.7)
2001-03-14 08:04:33 -05:00
Binh-Minh Ribler
9cd9f7f521 [svn-r3602]
Purpose: Usability enhancement

Description:
	- Added more information about the failure to all the throw's,
	i.e, member function name and more detail about the failure, where
	appropriate.  Also, added exception throws for private functions,
	such as p_close to provide more specific details.

	- Added two api functions: Exception::getFuncName() and
	Exception::getCFuncName() to provide the name of the member
	function where failure occurs.

	- Fixed some typos, one of which caused segn. fault in some
	situations (resetIdComponent was accidentally called twice
	in a couple of places :)

Platforms:
	arabica (sparc-sun-solaris 2.7)
2001-03-09 22:59:46 -05:00
Binh-Minh Ribler
f9d785f7de [svn-r3582]
Purpose:
    Test code improvement
Description:
	- Added H5_HAVE_ZLIB_H and H5_HAVE_LIBZ to dsets.cpp
	- Added the use of new API Exception::getCFuncName to obtain
	the name of the function where failure occurs, to various places
	in the test code.

Platforms tested:
	arabica (sparc-sun-solaris 2.7)
2001-03-09 17:15:28 -05:00
Bill Wendling
f9ea3ed89b [svn-r3578] Purpose:
Update
Description:
    Removed `examples/' subdirectory as one of the ones to test since we
    have "real" tests now
Platforms tested:
    Linux
2001-03-08 17:17:40 -05:00
Bill Wendling
b8bb807e1a [svn-r3577] Purpose:
Bug Fix
Description:
    Fixed the compile lines for the C++ tests.
Solution:
    Added the actual objects to be compiled into the testhdf5 program and
    removed the tfile from the TEST_PROGS line since it would try to
    create a program from the tfile module, but it didn't have a "main"
    function.
Platforms tested:
    Linux
2001-03-08 16:03:32 -05:00