Overture  Version 25
ParentChildSiblingBase.h
Go to the documentation of this file.
1 // created by Bobby Philip 05092001
2 #ifndef _PARENTCHILDSIBLINGBASE_H_
3 #define _PARENTCHILDSIBLINGBASE_H_
4 
5 #include "GenericDataBase.h"
6 #include "MappedGrid.h"
7 
8 // this header file contains the declaration of the base class for the
9 // ParentInfo, ChildInfo, and SiblingInfo objects
11 {
12  protected:
14  int gridIndex;
17  public:
23  ParentChildSiblingBase( const int );
27  virtual ~ParentChildSiblingBase();
29  virtual inline aString getClassName( void ) { return className; }
31  virtual Integer get( const GenericDataBase & db, const aString &name );
33  virtual Integer put( const GenericDataBase & db, const aString &name ) const;
35  virtual void consistencyCheck( void ) const;
36 
38  inline const int getGridIndex( void ) const { return gridIndex; }
39  inline void setGridIndex( const int index ) { gridIndex = index; }
41  friend ostream& operator<<(ostream& s, const ParentChildSiblingBase &pcsBase );
42 };
43 
44 #endif // _PARENTCHILDSIBLINGBASE_H_