[svn-r3122] Purpose:

Fix and improve

Description:
        - Put functions that are common to H5File and Group into a
          prototype class, CommonFG.  I didn't do that before because
          of the fear of the consequences of multiple inheritance, since
          H5File and Group already inherit from different super classes.
          I recently read a C++ book and learned to use MI more safely.
          This change reduced some more of code redundancy.
        - Added missing const to some function parameters

Platforms tested:
        Solaris/CC 5.0 (arabica)
This commit is contained in:
Binh-Minh Ribler
2000-12-13 08:06:57 -05:00
parent 9cbeb3c53f
commit 1aec17231d
6 changed files with 106 additions and 204 deletions

View File

@@ -12,7 +12,7 @@ class IdComponent {
public:
// Parent classes must reset the current IdComponent copy
// before setting new id to control reference count
void setId( const hid_t new_id );
void setId( hid_t new_id );
// Pure virtual function so appropriate close function can
// be called by subclasses' for the corresponding object