Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions

Attrib::DescSet Class Reference

Inheritance diagram for Attrib::DescSet:
CallBacker

List of all members.

Public Member Functions

 DescSet (bool is2d)
 DescSet (const DescSet &)
 ~DescSet ()
DescSetoperator= (const DescSet &)
bool isEmpty () const
DescSetoptimizeClone (const DescID &targetid) const
DescSetoptimizeClone (const TypeSet< DescID > &) const
DescSetoptimizeClone (const BufferStringSet &) const
void updateInputs ()
DescID addDesc (Desc *, DescID newid=DescID())
DescID insertDesc (Desc *, int, DescID newid=DescID())
void createAndAddMultOutDescs (const DescID &, const TypeSet< int > &, const BufferStringSet &, TypeSet< DescID > &)
int nrDescs (bool inclstored=true, bool inclhidden=true) const
Descdesc (int idx)
const Descdesc (int idx) const
DescgetDesc (const DescID &id)
const DescgetDesc (const DescID &id) const
DescID getID (const Desc &) const
DescID getID (int) const
DescID getID (const char *ref, bool isusrref, bool isdescstored=false, bool usestorinfo=false) const
void getIds (TypeSet< DescID > &) const
void getStoredIds (TypeSet< DescID > &) const
DescID getStoredID (const char *lk, int selout=-1, bool create=true, bool blindcomp=false, const char *blindcompnm=0)
DescgetFirstStored (bool usesteering=true) const
void removeDesc (const DescID &)
void moveDescUpDown (const DescID &, bool)
void sortDescSet ()
void removeAll (bool kpdefault)
int removeUnused (bool removestored=false, bool kpdefault=true)
bool isAttribUsed (const DescID &) const
void fillPar (IOPar &) const
bool usePar (const IOPar &, float, BufferStringSet *errmsgs=0)
bool useOldSteeringPar (IOPar &, ObjectSet< Desc > &, BufferStringSet *)
bool createSteeringDesc (const IOPar &, BufferString, ObjectSet< Desc > &, int &id, BufferStringSet *errmsgs=0)
DesccreateDesc (const BufferString &, const IOPar &, const BufferString &)
DescID createStoredDesc (const char *, int, const BufferString &)
bool setAllInputDescs (int, const IOPar &, BufferStringSet *)
void handleStorageOldFormat (IOPar &)
void handleOldAttributes (BufferString &, IOPar &, BufferString &, float) const
void handleOldMathExpression (IOPar &, BufferString &) const
void handleReferenceInput (Desc *)
void fillInAttribColRefs (BufferStringSet &) const
void setContainStoredDescOnly (bool yn)
bool containsStoredDescOnly () const
bool is2D () const
const char * errMsg () const
DescID ensureDefStoredPresent () const

Static Public Member Functions

static DesccreateDesc (const BufferString &, const IOPar &, const BufferString &, BufferStringSet *)
static const char * highestIDStr ()
static const char * definitionStr ()
static const char * userRefStr ()
static const char * inputPrefixStr ()
static const char * hiddenStr ()

Public Attributes

CNotifier< DescSet, DescIDdescToBeRemoved

Protected Member Functions

DescID getFreeID () const

Protected Attributes

ObjectSet< Descdescs_
TypeSet< DescIDids_
bool is2d_
bool storedattronly_
BufferString errmsg_
BufferString defidstr_
DescID defattribid_

Private Member Functions

DescgtDesc (const DescID &) const

Constructor & Destructor Documentation

Attrib::DescSet::DescSet ( bool  is2d  ) 
Attrib::DescSet::DescSet ( const DescSet  ) 
Attrib::DescSet::~DescSet (  )  [inline]

Member Function Documentation

DescID Attrib::DescSet::addDesc ( Desc ,
DescID  newid = DescID() 
)

returns id of the attrib

bool Attrib::DescSet::containsStoredDescOnly (  )  const [inline]
void Attrib::DescSet::createAndAddMultOutDescs ( const DescID ,
const TypeSet< int > &  ,
const BufferStringSet ,
TypeSet< DescID > &   
)

Make sure all descs needed to compute attributes with multiple outputs are created and added

static Desc* Attrib::DescSet::createDesc ( const BufferString ,
const IOPar ,
const BufferString ,
BufferStringSet  
) [static]
Desc* Attrib::DescSet::createDesc ( const BufferString ,
const IOPar ,
const BufferString  
)
bool Attrib::DescSet::createSteeringDesc ( const IOPar ,
BufferString  ,
ObjectSet< Desc > &  ,
int &  id,
BufferStringSet errmsgs = 0 
)
DescID Attrib::DescSet::createStoredDesc ( const char *  ,
int  ,
const BufferString  
)
static const char* Attrib::DescSet::definitionStr (  )  [inline, static]
Desc* Attrib::DescSet::desc ( int  idx  )  [inline]
const Desc* Attrib::DescSet::desc ( int  idx  )  const [inline]
DescID Attrib::DescSet::ensureDefStoredPresent (  )  const
const char* Attrib::DescSet::errMsg (  )  const
void Attrib::DescSet::fillInAttribColRefs ( BufferStringSet  )  const
void Attrib::DescSet::fillPar ( IOPar  )  const
Desc* Attrib::DescSet::getDesc ( const DescID id  )  [inline]
const Desc* Attrib::DescSet::getDesc ( const DescID id  )  const [inline]
Desc* Attrib::DescSet::getFirstStored ( bool  usesteering = true  )  const
DescID Attrib::DescSet::getFreeID (  )  const [protected]
DescID Attrib::DescSet::getID ( int   )  const
DescID Attrib::DescSet::getID ( const char *  ref,
bool  isusrref,
bool  isdescstored = false,
bool  usestorinfo = false 
) const
DescID Attrib::DescSet::getID ( const Desc  )  const
void Attrib::DescSet::getIds ( TypeSet< DescID > &   )  const
DescID Attrib::DescSet::getStoredID ( const char *  lk,
int  selout = -1,
bool  create = true,
bool  blindcomp = false,
const char *  blindcompnm = 0 
)
void Attrib::DescSet::getStoredIds ( TypeSet< DescID > &   )  const
Desc* Attrib::DescSet::gtDesc ( const DescID  )  const [private]
void Attrib::DescSet::handleOldAttributes ( BufferString ,
IOPar ,
BufferString ,
float   
) const
void Attrib::DescSet::handleOldMathExpression ( IOPar ,
BufferString  
) const
void Attrib::DescSet::handleReferenceInput ( Desc  ) 

will prepare strings for each desc, format : DescID`definition string

void Attrib::DescSet::handleStorageOldFormat ( IOPar  ) 
static const char* Attrib::DescSet::hiddenStr (  )  [inline, static]
static const char* Attrib::DescSet::highestIDStr (  )  [inline, static]
static const char* Attrib::DescSet::inputPrefixStr (  )  [inline, static]
DescID Attrib::DescSet::insertDesc ( Desc ,
int  ,
DescID  newid = DescID() 
)

returns id of the attrib

bool Attrib::DescSet::is2D (  )  const [inline]
bool Attrib::DescSet::isAttribUsed ( const DescID  )  const
bool Attrib::DescSet::isEmpty (  )  const [inline]
void Attrib::DescSet::moveDescUpDown ( const DescID ,
bool   
)
int Attrib::DescSet::nrDescs ( bool  inclstored = true,
bool  inclhidden = true 
) const
DescSet& Attrib::DescSet::operator= ( const DescSet  ) 
DescSet* Attrib::DescSet::optimizeClone ( const DescID targetid  )  const
DescSet* Attrib::DescSet::optimizeClone ( const TypeSet< DescID > &   )  const
DescSet* Attrib::DescSet::optimizeClone ( const BufferStringSet  )  const

Only clones stuff needed to calculate the attrib with the ids given

void Attrib::DescSet::removeAll ( bool  kpdefault  ) 
void Attrib::DescSet::removeDesc ( const DescID  ) 
int Attrib::DescSet::removeUnused ( bool  removestored = false,
bool  kpdefault = true 
)

Removes unused hidden attributes. Removed stored attribs if not available or if removestored flag is true; Returns total removed.

bool Attrib::DescSet::setAllInputDescs ( int  ,
const IOPar ,
BufferStringSet  
)
void Attrib::DescSet::setContainStoredDescOnly ( bool  yn  ) 
void Attrib::DescSet::sortDescSet (  ) 
void Attrib::DescSet::updateInputs (  ) 

Updates inputs for all descs in descset. Necessary after cloning

bool Attrib::DescSet::useOldSteeringPar ( IOPar ,
ObjectSet< Desc > &  ,
BufferStringSet  
)
bool Attrib::DescSet::usePar ( const IOPar ,
float  ,
BufferStringSet errmsgs = 0 
)
static const char* Attrib::DescSet::userRefStr (  )  [inline, static]

Member Data Documentation

DescID Attrib::DescSet::defattribid_ [mutable, protected]
bool Attrib::DescSet::is2d_ [protected]