Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
ParentInfo.h
Go to the documentation of this file.
1
// created by Bobby Philip 05092001
2
#ifndef _PARENTINFO_H_
3
#define _PARENTINFO_H_
4
5
#include "
ParentChildSiblingBase.h
"
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
9
class
ParentInfo
:
public
ParentChildSiblingBase
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_
Generated on Fri Jan 4 2013 10:17:57 for Overture by
1.8.3