Acoustic Research Tool (ART)  v0.10
ARTlistProp Class Reference

A list of objects (like all ARTelement:s as userElements) that is added as property to another ARTobject.

prototypeModels for ex. is such a list, belonging to the root object, and to this list all ARTprototype:s are added. (List is then part of ARTobject's property list)

Inheritance diagram for ARTlistProp:
ARTproperty ARTcell

Public Member Functions

 ARTlistProp (const string name, const string sds="", const string lds="", const string htm="")
ARTobject * GetObjects (ARTobject *pos)
 iterate through object list (pass NULL to restart iteration, receive NULL after last element)
ARTobject * FindObject (const string nam)
 find and return named object (or return NULL if no match)
ARTobject * AppendObject (const string name, const string sds="", const string lds="", const string htm="")
 append new object with given name
ARTobject * AppendObject (ARTobject *object)
 append object which is already created
bool DeleteObject (ARTobject *pos)
 delete object pos
int ReplaceObject (ARTobject *obj, ARTobject *newobj)
 replace all occurences of obj with newobj
- Public Member Functions inherited from ARTproperty
 ARTproperty (const string name, const string sds="", const string lds="", const string htm="", const bool listable=false)
 ARTproperty (const ARTproperty &orig)
virtual ARTcell * clone ()
bool IsListable ()
- Public Member Functions inherited from ARTcell
 ARTcell (const string name="", const string sds="", const string lds="", const string htm="")
 ARTcell (const ARTcell &orig)
const string & GetName () const
const string & GetShortDescription () const
const string & GetLongDescription () const
const string & GetHelpFilename () const
void SetName (const string name)

Additional Inherited Members

- Protected Attributes inherited from ARTcell
string name_
 Identifier of ARTObject.
string shortDesc_
 Short Description of ARTObject (single line hint)
string longDesc_
 Long Description of ARTObject (multi line text)
string helpFile_
 File name of HTML help file for ARTObject.

Member Function Documentation

int ARTlistProp::ReplaceObject ( ARTobject *  obj,
ARTobject *  newobj 
)

replace all occurences of obj with newobj

Returns
the number of replacements