summaryrefslogtreecommitdiffstats
path: root/c++
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r4605] Binh-Minh Ribler2001-11-142-7/+17
| | | | | | | | | | | | | | | 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
* [svn-r4604] Binh-Minh Ribler2001-11-131-40/+20
| | | | | | | | | | | | | | | 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
* [svn-r4594] Binh-Minh Ribler2001-11-081-13/+6
| | | | | | | | | | Purpose: Minor code cleanup Description: Removed unused variables, that were complained by Windows. Platforms tested: SunOS 5.7 (arabica) Windows 98
* [svn-r4583] Raymond Lu2001-11-025-5/+5
| | | | | | | | | 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.
* [svn-r4580] Binh-Minh Ribler2001-10-314-5/+14
| | | | | | | | | | | | | | 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
* [svn-r4573] Raymond Lu2001-10-251-2/+1
| | | | | | | Purpose: Switch mount property list to the new generic property list. Platforms tested: IRIX64 6.5, SunOS 5.7, FreeBSD.
* [svn-r4569] Raymond Lu2001-10-241-1/+0
| | | | | | | | | Purpose: Generic Property List Change Description: Changed file access list to the new generic list. Platforms tested: IRIX64, SunOS5.7, FreeBSD
* [svn-r4553] Purpose:Quincey Koziol2001-10-173-7/+10
| | | | | | | | Bug fix. Description: Fix int/unsigned problem in C++ wrapper API Platforms tested: FreeBSD 4.4 (hawkwind)
* [svn-r4542] Raymond Lu2001-10-151-2/+0
| | | | | | | Purpose: Changed to the new generic property list. Description: Took out H5P_FILE_CREATE from constructor definition.
* [svn-r4516] Raymond Lu2001-10-031-1/+1
| | | | | | | Purpose: Changed to the new generic property list Platforms tested: Arabica and Hawkwind
* [svn-r4482] Purpose:Quincey Koziol2001-09-267-38/+27
| | | | | | | | | | | | | | | | | | | | | | 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)
* [svn-r4467] Bill Wendling2001-09-211-1/+4
| | | | | | | | | Purpose: Small Bug Fix Description: Made 'install-all' its own Makefile rule. Platforms tested: Linux
* [svn-r4466] Bill Wendling2001-09-214-37/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [svn-r4366] Purpose:Binh-Minh Ribler2001-08-162-2/+2
| | | | | | | | | | | | | 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)
* [svn-r4355] Purpose:Quincey Koziol2001-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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)
* [svn-r4324] Purpose:Quincey Koziol2001-08-102-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* [svn-r4298] Bill Wendling2001-08-013-0/+9
| | | | | Purpose: Regenerated Dependencies Files
* [svn-r4293] Bill Wendling2001-08-011-0/+1
| | | | | | | | | Purpose: Bug Fix Description: Needed to add the PERL=@PERL@ line to the commence.in file. Platforms tested: LInx
* [svn-r4292] Bill Wendling2001-08-013-43/+88
| | | | | | | | | | | | | | | | 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
* [svn-r4181] Purpose:Quincey Koziol2001-07-102-2/+2
| | | | | | | | | 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)
* [svn-r4136] Bill Wendling2001-07-061-1/+1
| | | | | | | | | | | | | 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
* [svn-r3930] Purpose:Bill Wendling2001-05-157-9847/+3
| | | | | | | | | Fix Description: Removed the redundant executables here. We just use the ones in the top-level of the tree. Platforms tested: Linux
* [svn-r3866] Purpose:Bill Wendling2001-04-271-1/+1
| | | | | | | | | | Bug Fix Description: "make distclean" was removing the .h5 file. Solution: Stopped it from doing that. Platforms tested: Linux
* [svn-r3865] Purpose:Bill Wendling2001-04-271-4/+4
| | | | | | | | | | Bug Fix Description: The "-$(RM)" was failing for make distclean. Solution: Removed the "-". Platforms tested: Linux
* [svn-r3814] Purpose:Bill Wendling2001-04-161-7/+14
| | | | | | | | | | | | | | | 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
* [svn-r3810] Purpose:Bill Wendling2001-04-132-405/+58
| | | | | | Update Description: Removed test for zlib since the C++ library doesn't need it.
* [svn-r3807] Purpose:Quincey Koziol2001-04-132-74/+80
| | | | | | | | | | | | | | 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)
* [svn-r3804] Purpose:Bill Wendling2001-04-121-1/+1
| | | | | | | | | | | | | | 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
* [svn-r3740] Purpose:Bill Wendling2001-03-302-58/+405
| | | | | | | | | | | | | 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
* [svn-r3708] Purpose: Code cleanup and adding more testBinh-Minh Ribler2001-03-252-105/+158
| | | | | | | | | | | | | | | | | | | | 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)
* [svn-r3707] Purpose: Bug fixes and code clean upBinh-Minh Ribler2001-03-2513-173/+552
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* [svn-r3646] Purpose:Bill Wendling2001-03-151-1/+3
| | | | | | | | | | | 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
* [svn-r3639] Binh-Minh Ribler2001-03-151-0/+0
| | | | | | | | | | | 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)
* [svn-r3635] Binh-Minh Ribler2001-03-141-8/+10
| | | | | | | | | | | | 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)
* [svn-r3627] Binh-Minh Ribler2001-03-141-2/+2
| | | | | | | | | Purpose: Adding C++ API test Description: Added th5s to Makefile.in Platforms tested: arabica (sparc-sun-solaris 2.7)
* [svn-r3625] Binh-Minh Ribler2001-03-143-73/+74
| | | | | | | | | 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)
* [svn-r3624] Binh-Minh Ribler2001-03-141-0/+534
| | | | | | | Purpose: Adding dataspace test to the C++ API Platforms tested: arabica (sparc-sun-solaris 2.7)
* [svn-r3602] Binh-Minh Ribler2001-03-1028-320/+497
| | | | | | | | | | | | | | | | | | | | | 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)
* [svn-r3582] Binh-Minh Ribler2001-03-093-28/+21
| | | | | | | | | | | | | 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)
* [svn-r3578] Purpose:Bill Wendling2001-03-081-9/+6
| | | | | | | | | Update Description: Removed `examples/' subdirectory as one of the ones to test since we have "real" tests now Platforms tested: Linux
* [svn-r3577] Purpose:Bill Wendling2001-03-081-2/+2
| | | | | | | | | | | | | 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
* [svn-r3576] Purpose:Bill Wendling2001-03-081-1/+1
| | | | | | | | | | | Update Description: We now have a "real" testing thingy for the C++ code. We don't need to run things in the examples directory. Solution: Commented out the "TEST_SCRIPT" line. Platforms tested: Linux
* [svn-r3551] Binh-Minh Ribler2001-03-061-1/+2
| | | | | | | | | | | | | | Purpose: Bug fix Description: Compiled error about "RcsId initialized twice" Solution: This problem has been taken care of in the C++ API already. However, because dsets.cpp includes the C++ header file H5Cpp.h after the C test header files, h5test.h and testhdf5.h, the fix was missed. Moved H5Cpp.h to before those C header files. Platforms tested: arabica (sparc-sun-solaris 2.7)
* [svn-r3550] Binh-Minh Ribler2001-03-062-7/+7
| | | | | | | | | | | | | Purpose: Bug fix Description: The Exception destructor accidently called H5Eprint, which caused error messages to be printed where they are not supposed to because the failures are expected. Solution: Removed that lousy call! Platforms tested: arabica (sparc-sun-solaris 2.7)
* [svn-r3549] Purpose:Bill Wendling2001-03-054-140/+147
| | | | | | | | | | | | | | | | | | | Adding Test Description: - Add the tests to the Makefile so that they'll be executed. - Fixed a few bugs in dsets.cpp * Some buffers should have been char *'s instead of void *'s. * An iterator for a loop wasn't declared properly. - Formatting changes Solution: - Changed the void *'s to char *'s. - Declared the loop iterator. NOTE: Doesn't work just yet. There's a conflict with a C++ keyword (delete) in the H5Pprivate.h header file. Quincey's looking into this. Platforms tested: Linux
* [svn-r3540] Purpose:Binh-Minh Ribler2001-03-0234-81/+66
| | | | | | | | | | | | | | | | | | | | Feasibility improvement Description: - Some member functions in class Exception can be called without an Exception instance exits, but because they are not static, they cannot. - Many exception throwings don't provide any information to callers. Solution: - Add 'static' to several member functions in class Exception. - Added <class name::function name> to some exceptions thrown in H5File.cpp and H5FcreatProp.cpp. I'm trying this for users' comments. More information may be added later and to all exceptions. - Changed the comment line for emacs editor to: // C++ informative line for the emacs editor: -*- C++ -*- because... I'd rather not say that the code "may look like C" :-) Platforms tested: Linux (gcc version egcs-2.91.66)
* [svn-r3537] Purpose:Bill Wendling2001-03-021-2/+2
| | | | | | | | | | | | Bug Fix Description: Wasn't building the test programs if user simply did a build with ``make check'' instead of ``make all && make check''. Solution: Put the test programs in the TEST_PROGS macro so that they'd be built. Platforms tested: Linux
* [svn-r3536] Purpose:Bill Wendling2001-03-022-5/+1
| | | | | | | | | | | Bug Fix Description: The RUNSERIAL and RUNPARALLEL macros weren't needed in the C++ stuff and were messing up some of the testing. Solution: Removed them. Platforms tested: Linux
* [svn-r3534] Purpose:Bill Wendling2001-03-0230-3/+32
| | | | | | | | | Bug Fix Description: Added comments to the top of C++ files to indicate that it's a C++ file and not a C source code file. Also added a macro which makes emacs automagically enter c++-mode. (Recommended by Frank Schimmel fschimme@monsoon.CAPS.ou.edu)
* [svn-r3532] Purpose:Binh-Minh Ribler2001-03-013-0/+1692
| | | | | | | | | | | | | | Adding tests to the C++ API Description: The C++ API has no formal testing yet. Solution: Added tests for file and dataset interfaces. I'm still working on other tests. Platforms tested: Linux (gcc version egcs-2.91.66) I temporarily modified the Makefile on my local Linux machine and these tests work. I need Bill to help adding them permanently before I can test on an NCSA machine. I checked the files in now so Bill can do that.