Overture  Version 25
ParentInfo.h
Go to the documentation of this file.
1 // created by Bobby Philip 05092001
2 #ifndef _PARENTINFO_H_
3 #define _PARENTINFO_H_
4 
6 #include "Box.H"
7 // in future these classes could be reference counted but
8 // at this point we are not going to worry about this issue
10 {
11  private:
13  Box parentBox;
15  aString className;
16  public:
18  ~ParentInfo();
20  ParentInfo();
22  ParentInfo( const ParentInfo &X );
24  ParentInfo( const int parentGridIndex,
25  const Box &parentBox );
27  ParentInfo &operator=( const ParentInfo &X );
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;
38  const inline Box &getParentBox( void ) const { return parentBox;}
40  inline void setParentBox( const Box &box ) { assert( box.ok() ); parentBox = box; }
42  friend ostream& operator<<(ostream& s, const ParentInfo &parentInfo );
43 };
44 
45 #endif // _PARENTINFO_H_