Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends

Strat::UnitRef Class Reference

Reference data for a stratigraphic unit. More...

Inheritance diagram for Strat::UnitRef:
CallBacker Strat::LeafUnitRef Strat::NodeUnitRef Strat::LeavedUnitRef Strat::NodeOnlyUnitRef Strat::RefTree

List of all members.

Public Types

enum  Type { NodeOnly, Leaved, Leaf }

Public Member Functions

 UnitRef (NodeUnitRef *, const char *d=0)
virtual ~UnitRef ()
virtual Type type () const =0
virtual bool hasChildren () const =0
bool isLeaf () const
bool isLeaved () const
CompoundKey fullCode () const
virtual const BufferStringcode () const =0
virtual void setCode (const char *)
const BufferStringdescription () const
virtual void setDescription (const char *d)
Color color () const
void setColor (Color)
IOParpars ()
const IOParpars () const
NodeUnitRefupNode (int skip=0)
const NodeUnitRefupNode (int skip=0) const
NodeUnitReftopNode ()
const NodeUnitReftopNode () const
RefTreerefTree ()
const RefTreerefTree () const
virtual bool isParentOf (const UnitRef &) const
int treeDepth () const
bool isBelow (const UnitRef *) const
 is given ref parent, grandparent, grandgrand...
bool precedes (const UnitRef &) const
 in terms of iterating through tree
virtual void fill (BufferString &bs) const
virtual void use (const char *s)
virtual void getPropsFrom (const IOPar &)
virtual void putPropsTo (IOPar &) const

Static Public Member Functions

static const char * sKeyPropsFor ()
static const char * sKeyTreeProps ()

Public Attributes

Notifier< UnitRefchanged
Notifier< UnitReftoBeDeleted

Protected Member Functions

void doFill (BufferString &, int) const
void doUse (const char *, int *)
void notifChange (bool isrem=false)

Protected Attributes

NodeUnitRefupnode_
BufferString desc_
Color color_
IOPar pars_

Friends

class NodeUnitRef

Detailed Description

Reference data for a stratigraphic unit.

Every stratigraphy is a tree of units. A stratigraphy consists of reference units - every part of the subsurface can be attached to a reference unit.


Member Enumeration Documentation

Enumerator:
NodeOnly 
Leaved 
Leaf 

Constructor & Destructor Documentation

Strat::UnitRef::UnitRef ( NodeUnitRef ,
const char *  d = 0 
)
virtual Strat::UnitRef::~UnitRef (  )  [virtual]

Member Function Documentation

virtual const BufferString& Strat::UnitRef::code (  )  const [pure virtual]

Implemented in Strat::NodeUnitRef, and Strat::LeafUnitRef.

Color Strat::UnitRef::color (  )  const [inline]
const BufferString& Strat::UnitRef::description (  )  const [inline]
void Strat::UnitRef::doFill ( BufferString ,
int   
) const [protected]
void Strat::UnitRef::doUse ( const char *  ,
int *   
) [protected]
virtual void Strat::UnitRef::fill ( BufferString bs  )  const [inline, virtual]

Reimplemented in Strat::LeavedUnitRef, and Strat::LeafUnitRef.

CompoundKey Strat::UnitRef::fullCode (  )  const
virtual void Strat::UnitRef::getPropsFrom ( const IOPar  )  [virtual]

Reimplemented in Strat::NodeUnitRef, and Strat::LeafUnitRef.

virtual bool Strat::UnitRef::hasChildren (  )  const [pure virtual]

Implemented in Strat::NodeUnitRef, and Strat::LeafUnitRef.

bool Strat::UnitRef::isBelow ( const UnitRef  )  const

is given ref parent, grandparent, grandgrand...

bool Strat::UnitRef::isLeaf (  )  const [inline]
bool Strat::UnitRef::isLeaved (  )  const [inline]
virtual bool Strat::UnitRef::isParentOf ( const UnitRef  )  const [inline, virtual]

Reimplemented in Strat::NodeUnitRef.

void Strat::UnitRef::notifChange ( bool  isrem = false  )  [protected]
IOPar& Strat::UnitRef::pars (  )  [inline]
const IOPar& Strat::UnitRef::pars (  )  const [inline]
bool Strat::UnitRef::precedes ( const UnitRef  )  const

in terms of iterating through tree

virtual void Strat::UnitRef::putPropsTo ( IOPar  )  const [virtual]

Reimplemented in Strat::NodeUnitRef.

RefTree& Strat::UnitRef::refTree (  ) 
const RefTree& Strat::UnitRef::refTree (  )  const
virtual void Strat::UnitRef::setCode ( const char *   )  [inline, virtual]

Reimplemented in Strat::NodeUnitRef.

void Strat::UnitRef::setColor ( Color   ) 
virtual void Strat::UnitRef::setDescription ( const char *  d  )  [inline, virtual]
static const char* Strat::UnitRef::sKeyPropsFor (  )  [inline, static]
static const char* Strat::UnitRef::sKeyTreeProps (  )  [inline, static]
const NodeUnitRef * Strat::UnitRef::topNode (  )  const [inline]
NodeUnitRef * Strat::UnitRef::topNode (  )  [inline]
int Strat::UnitRef::treeDepth (  )  const
virtual Type Strat::UnitRef::type (  )  const [pure virtual]
NodeUnitRef* Strat::UnitRef::upNode ( int  skip = 0  ) 
const NodeUnitRef* Strat::UnitRef::upNode ( int  skip = 0  )  const [inline]
virtual void Strat::UnitRef::use ( const char *  s  )  [inline, virtual]

Reimplemented in Strat::LeavedUnitRef, and Strat::LeafUnitRef.


Friends And Related Function Documentation

friend class NodeUnitRef [friend]

Member Data Documentation