These steps are to be done:
- Define a class:
::obj::new $classname
- Define constructor, destructor
::obj::constructor $classname $argl $body
::obj::destructor $classname $body
- Define options
::obj::configure $classname $key $defaultval
- Define methods
::obj::method $classname $method $argl $body
- Define configuremethods
::obj::configuremethod $classname $key $val $body
::obj::validatemethod $classname $key $val $body
::obj::cgetmethod $classname $key $body
- Delegate methods
::obj::delegate method $method $component
... or ...
::obj::delegate method $method $component $compmethod
- Delegate options
::obj::delegate option $method $component
... or ...
::obj::delegate option $method $component $compoption
- Create an object
set obj1 [::obj::new $classname]
... or ...
set obj1 [$classname]
- Write the body of your script

| Home
| Sitemap
| A-Z
|