List of all members.
Public Member Functions |
| | LevelSet () |
| | LevelSet (const LevelSet &) |
| virtual | ~LevelSet () |
| LevelSet & | operator= (const LevelSet &) |
| bool | isEmpty () const |
| int | size () const |
| const ObjectSet< Level > & | levels () const |
| void | setEmpty () |
| bool | isPresent (const char *nm) const |
| bool | isPresent (Level::ID id) const |
| int | indexOf (const char *nm) const |
| int | indexOf (Level::ID id) const |
| Level * | get (const char *nm) |
| const Level * | get (const char *nm) const |
| Level * | get (Level::ID id) |
| const Level * | get (Level::ID id) const |
| Level * | add (const char *lvlnm, const Color &c) |
| Level * | insert (const char *lvlnm, const Color &c, int idx=-1) |
| Level * | set (const char *lvlnm, const Color &c) |
| void | remove (Level::ID) |
| Level * | add (const Level &) |
| | copy stuff, but new ID/name
|
| void | add (const BufferStringSet &, const TypeSet< Color > &) |
| int | notifLvlIdx () const |
| | if < 0 then more than one level have changed
|
| bool | store (Repos::Source) const |
| bool | needStore () const |
| bool | readFrom (const char *) |
| bool | writeTo (const char *) const |
| Repos::Source | readOldRepos () |
Public Attributes |
| Notifier< LevelSet > | levelAdded |
| Notifier< LevelSet > | levelChanged |
| Notifier< LevelSet > | levelToBeRemoved |
Protected Member Functions |
| Level * | getNew (const Level *lvl=0) const |
| Level * | set (const char *, const Color &, int) |
| int | gtIdxOf (const char *, Level::ID) const |
| Level * | gtLvl (const char *, Level::ID) const |
| void | addLvl (Level *) |
| void | getLevelsFrom (const LevelSet &) |
| void | makeMine (Level &) |
| void | readPars (ascistream &, bool) |
| void | lvlChgCB (CallBacker *cb) |
| void | lvlRemCB (CallBacker *cb) |
| void | notif (CallBacker *, bool) |
Static Protected Member Functions |
| static bool | haveCurSet () |
Protected Attributes |
| ObjectSet< Level > | lvls_ |
| int | notiflvlidx_ |
| Level::ID | lastlevelid_ |
| bool | ischanged_ |
Friends |
| class | LevelSetMgr |
Detailed Description
Set of Stratigraphic levels.
Manages not only the units, but also their IDs. The set will not allow adding levels with the same name; the result is that you simply set the existing one to new values.
Constructor & Destructor Documentation
| Strat::LevelSet::LevelSet |
( |
|
) |
|
| Strat::LevelSet::LevelSet |
( |
const LevelSet & |
|
) |
|
| virtual Strat::LevelSet::~LevelSet |
( |
|
) |
[virtual] |
Member Function Documentation
| Level* Strat::LevelSet::add |
( |
const char * |
lvlnm, |
|
|
const Color & |
c | |
|
) |
| | [inline] |
copy stuff, but new ID/name
| void Strat::LevelSet::addLvl |
( |
Level * |
|
) |
[protected] |
| const Level* Strat::LevelSet::get |
( |
const char * |
nm |
) |
const [inline] |
| Level* Strat::LevelSet::get |
( |
const char * |
nm |
) |
[inline] |
| void Strat::LevelSet::getLevelsFrom |
( |
const LevelSet & |
|
) |
[protected] |
| Level* Strat::LevelSet::getNew |
( |
const Level * |
lvl = 0 |
) |
const [protected] |
| int Strat::LevelSet::gtIdxOf |
( |
const char * |
, |
|
|
Level::ID |
| |
|
) |
| | const [protected] |
| Level* Strat::LevelSet::gtLvl |
( |
const char * |
, |
|
|
Level::ID |
| |
|
) |
| | const [protected] |
| static bool Strat::LevelSet::haveCurSet |
( |
|
) |
[static, protected] |
| int Strat::LevelSet::indexOf |
( |
const char * |
nm |
) |
const [inline] |
| int Strat::LevelSet::indexOf |
( |
Level::ID |
id |
) |
const [inline] |
| Level* Strat::LevelSet::insert |
( |
const char * |
lvlnm, |
|
|
const Color & |
c, |
|
|
int |
idx = -1 | |
|
) |
| | [inline] |
| bool Strat::LevelSet::isEmpty |
( |
|
) |
const [inline] |
| bool Strat::LevelSet::isPresent |
( |
const char * |
nm |
) |
const [inline] |
| bool Strat::LevelSet::isPresent |
( |
Level::ID |
id |
) |
const [inline] |
| void Strat::LevelSet::lvlChgCB |
( |
CallBacker * |
cb |
) |
[inline, protected] |
| void Strat::LevelSet::lvlRemCB |
( |
CallBacker * |
cb |
) |
[inline, protected] |
| void Strat::LevelSet::makeMine |
( |
Level & |
|
) |
[protected] |
| bool Strat::LevelSet::needStore |
( |
|
) |
const [inline] |
| void Strat::LevelSet::notif |
( |
CallBacker * |
, |
|
|
bool |
| |
|
) |
| | [protected] |
| int Strat::LevelSet::notifLvlIdx |
( |
|
) |
const [inline] |
if < 0 then more than one level have changed
| bool Strat::LevelSet::readFrom |
( |
const char * |
|
) |
|
| void Strat::LevelSet::readPars |
( |
ascistream & |
, |
|
|
bool |
| |
|
) |
| | [protected] |
| Level* Strat::LevelSet::set |
( |
const char * |
lvlnm, |
|
|
const Color & |
c | |
|
) |
| | [inline] |
| Level* Strat::LevelSet::set |
( |
const char * |
, |
|
|
const Color & |
, |
|
|
int |
| |
|
) |
| | [protected] |
| void Strat::LevelSet::setEmpty |
( |
|
) |
[inline] |
| int Strat::LevelSet::size |
( |
|
) |
const [inline] |
| bool Strat::LevelSet::writeTo |
( |
const char * |
|
) |
const |
Friends And Related Function Documentation
friend class LevelSetMgr [friend] |
Member Data Documentation