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

Strat::Level Class Reference

Stratigraphic level. More...

Inheritance diagram for Strat::Level:
NamedObject CallBacker

List of all members.

Public Types

typedef int ID

Public Member Functions

bool operator== (const Level &) const
bool isDifferentFrom (const Level &) const
ID id () const
Color color () const
const IOParpars () const
void setName (const char *)
void setColor (Color)
void setPars (const IOPar &)
virtual ~Level ()
const char * checkName (const char *) const

Static Public Member Functions

static const Levelundef ()

Public Attributes

Notifier< Levelchanged
Notifier< LeveltoBeRemoved

Protected Member Functions

 Level (const char *nm, const LevelSet *)
 Level (const Level &)
void fillPar (IOPar &) const
void usePar (const IOPar &)

Protected Attributes

ID id_
Color color_
IOParpars_
const LevelSetlvlset_

Friends

class LevelSet

Detailed Description

Stratigraphic level.

To store extra details, use the pars_.

The ID cannot be assigned, and it is unique. It is managed by the LevelSet. Therefore: operator ==() : checks only ID isDifferentFrom() : checks all but ID


Member Typedef Documentation

typedef int Strat::Level::ID

Constructor & Destructor Documentation

Strat::Level::Level ( const char *  nm,
const LevelSet  
) [protected]
Strat::Level::Level ( const Level  )  [protected]
virtual Strat::Level::~Level (  )  [virtual]

Member Function Documentation

const char* Strat::Level::checkName ( const char *   )  const

returns null if object can be renamed to it, otherwise an error message

Color Strat::Level::color (  )  const [inline]
void Strat::Level::fillPar ( IOPar  )  const [protected]
ID Strat::Level::id (  )  const [inline]
bool Strat::Level::isDifferentFrom ( const Level  )  const
bool Strat::Level::operator== ( const Level  )  const
const IOPar& Strat::Level::pars (  )  const [inline]
void Strat::Level::setColor ( Color   ) 
void Strat::Level::setName ( const char *   )  [virtual]

Reimplemented from NamedObject.

void Strat::Level::setPars ( const IOPar  ) 
static const Level& Strat::Level::undef (  )  [static]
void Strat::Level::usePar ( const IOPar  )  [protected]

Friends And Related Function Documentation

friend class LevelSet [friend]

Member Data Documentation

ID Strat::Level::id_ [protected]
const LevelSet* Strat::Level::lvlset_ [protected]
IOPar& Strat::Level::pars_ [protected]