Menu

Commit [r1024]  Maximize  Restore  History

Trunk 1.1: Object Validation part II

- validate level rw-access permission on attributes
- supply declaration based default values for not set attributes
- set of attribute value to "nil":
- reset to default value if default other than nil
- if default nil the attribute will be deleted as the access return nil
- new object type schema instead of inconsistent old kind:
- a new kind can be any specifier from "st", "st_brick" to "st_brick_n"
- class = common attr., mesg., similar behaviour, image - e.g. "st_brick"
- subkind = most specific kind with one or more attr. fixed to values
- obj:kind() return most specific kind - dynamically evaluated on base
of attribute values via given XML declaration
- obj:is("akind") checks if a objects fits to kind based on XML declaration
Note:
- just a few test objects are yet XML declared

ral 2008-02-06

changed /trunk/lib-src/enigma-core/ecl_alist.hh
changed /trunk/src/AttributeDescriptor.cc
changed /trunk/src/AttributeDescriptor.hh
changed /trunk/src/KindDescriptor.cc
changed /trunk/src/KindDescriptor.hh
changed /trunk/src/Object.cc
changed /trunk/src/Object.hh
changed /trunk/src/ObjectValidator.cc
changed /trunk/src/ObjectValidator.hh
changed /trunk/src/lua.cc
changed /trunk/src/main.cc
changed /trunk/src/stones/Switch.cc
changed /trunk/src/stones/Switch.hh
/trunk/lib-src/enigma-core/ecl_alist.hh Diff Switch to side-by-side view
Loading...
/trunk/src/AttributeDescriptor.cc Diff Switch to side-by-side view
Loading...
/trunk/src/AttributeDescriptor.hh Diff Switch to side-by-side view
Loading...
/trunk/src/KindDescriptor.cc Diff Switch to side-by-side view
Loading...
/trunk/src/KindDescriptor.hh Diff Switch to side-by-side view
Loading...
/trunk/src/Object.cc Diff Switch to side-by-side view
Loading...
/trunk/src/Object.hh Diff Switch to side-by-side view
Loading...
/trunk/src/ObjectValidator.cc Diff Switch to side-by-side view
Loading...
/trunk/src/ObjectValidator.hh Diff Switch to side-by-side view
Loading...
/trunk/src/lua.cc Diff Switch to side-by-side view
Loading...
/trunk/src/main.cc Diff Switch to side-by-side view
Loading...
/trunk/src/stones/Switch.cc Diff Switch to side-by-side view
Loading...
/trunk/src/stones/Switch.hh Diff Switch to side-by-side view
Loading...