Glyph Version 7.22.2 |
pw:: AttributeDictionaryType for storing a group of key-value pairs that can be attached to entities Derives FromSummary
create
This action creates a new attribute dictionary object. ParametersThis action has no parameters. ReturnsThis action returns a new pw::AttributeDictionary object. getAll
This action gets a list of all of the current attribute dictionaries. Parameters
ReturnsThis action returns a list of pw::AttributeDictionary objects. getByName
This action gets an attribute dictionary object with the given name. Parameters
ReturnsThis action returns a pw::AttributeDictionary object. Name
This attribute is the name of the attribute dictionary. TypeThis attribute is a string. DefaultThe default for this attribute is a uniquely generated name. Class
This attribute is the class of the attribute dictionary. TypeThis attribute is a string. DefaultThe default for this attribute is the string User. getDictionary
This action gets a dictionary of key-value pairs of attributes that are defined by this attribute dictionary. Parameters
ReturnsThis action returns a list of strings that can be converted into a tcl dictionary (list of alternating keys and values). If the -modified flag was used, a second list is returned with modified state for each key-value pair. setDictionary
This action assigns the given key-value pairs as the attributes for this attribute dictionary. Parameters
ReturnsThis action returns nothing. updateDictionary
This action updates the key-value pairs for this attribute dictionary. Parameters
ReturnsThis action returns nothing. getEntities
This action gets a list of entities that this dictionary has been attached to. ParametersThis action has no parameters. ReturnsThis action returns a list of pw::Entity objects. |
This action creates a new attribute dictionary object.
pw::AttributeDictionary create
This action gets a list of all of the current attribute dictionaries.
pw::AttributeDictionary getAll ?-class class_name?
This action gets an attribute dictionary object with the given name.
pw::AttributeDictionary getByName name
This attribute is the name of the attribute dictionary.
$attr get/setName name
This attribute is the class of the attribute dictionary.
$attr get/setClass class
This action gets a dictionary of key-value pairs of attributes that are defined by this attribute dictionary.
$attr getDictionary ?-modified? ?attr_keys?
This action assigns the given key-value pairs as the attributes for this attribute dictionary.
$attr setDictionary dict
This action updates the key-value pairs for this attribute dictionary.
$attr updateDictionary ?-force? key ?value?
This action renames a key of this attribute dictionary.
$attr renameDictionaryKey key new_key
This action gets a list of entities that this dictionary has been attached to.
$attr getEntities
This action deletes this attribute dictionary.
$attr delete