Overture  Version 25
ChildInfo.h
Go to the documentation of this file.
1 // created by Bobby Philip 05092001
2 #ifndef _CHILDINFO_H_
3 #define _CHILDINFO_H_
4 
6 #include "Box.H"
7 
8 // in future these classes could be reference counted but
9 // at this point we are not going to worry about this issue
11 {
12  private:
14  Box childBox;
16  aString className;
17  public:
19  ~ChildInfo();
21  ChildInfo();
23  ChildInfo( const ChildInfo &X );
24 
25  ChildInfo( const int childGridIndex,
26  const Box &childBox );
28  ChildInfo &operator=( const ChildInfo &X );
29 
30  virtual inline aString getClassName( void ) { return className; }
31 
32  virtual Integer get( const GenericDataBase & db, const aString &name );
33  virtual Integer put( const GenericDataBase & db, const aString &name ) const;
34 
35  virtual void consistencyCheck( void ) const;
36 
38  const inline Box &getChildBox ( void ) const { return childBox; }
40  inline void setChildBox ( const Box &box ) { assert( box.ok() ); childBox = box; }
41  friend ostream& operator<<(ostream& s, const ChildInfo &childInfo );
42 };
43 
44 #endif // _CHILDINFO_H_