textmarkup/
mgtmtag__define.pro
Class description for mgtmtag
Inheritance
Properties
- _extra init
- attribute_names get
- _ref_extra get
- n_attributes get
- n_children get
Routines
mgtmtag::_print [, indent=string]
Helper routine for debugging.
mgtmtag::getProperty [, n_children=long] [, n_attributes=long] [, attribute_names=strarr] [, _ref_extra=keywords]
Get properties of the text node.
result = mgtmtag::getChild(pos [, /last])
Get child at pos of the node.
mgtmtag::addChild, child
Add a child to the node.
result = mgtmtag::isEmpty()
Indicates if this tag has any children.
mgtmtag::removeChild, pos [, /last]
Remove a child from the node.
result = mgtmtag::getAttribute(name, /found)
Get the value of an attribute.
mgtmtag::addAttribute, name, value
Add an attribute to the tag.
result = mgtmtag::_clone()
Implement cloning.
mgtmtag::cleanup
Free resources.
result = mgtmtag::init( [_extra=keywords])
Create a markup tag node.
mgtmtag__define
Define a tag node.
Routine details
top source mgtmtag::_print
mgtmtag::_print [, indent=string]
Helper routine for debugging.
Keywords
- indent in optional type=string
prefix to print before each line, usually set to several spaces
top source mgtmtag::getProperty
mgtmtag::getProperty [, n_children=long] [, n_attributes=long] [, attribute_names=strarr] [, _ref_extra=keywords]
Get properties of the text node.
Keywords
- n_children out optional type=long
number of children of the node
- n_attributes out optional type=long
number of attributes of the node
- attribute_names out optional type=strarr
names of the attributes of this node
- _ref_extra out optional type=keywords
keywords to
MGtmNode::getProperty
top source mgtmtag::getChild
result = mgtmtag::getChild(pos [, /last])
Get child at pos of the node.
Return value
Parameters
- pos in required type=long
position of the child to get
Keywords
- last in optional type=boolean
set to get the last child
top source mgtmtag::addChild
mgtmtag::addChild, child
Add a child to the node.
Parameters
- child in required type=objref
MGtmNode
object to add as a child
top source mgtmtag::isEmpty
result = mgtmtag::isEmpty()
Indicates if this tag has any children.
Return value
1 if no children, 0 if has children
top source mgtmtag::removeChild
mgtmtag::removeChild, pos [, /last]
Remove a child from the node.
Parameters
- pos in required type=long
position of child to remove
Keywords
- last in optional type=boolean
set to remove the last child
top source mgtmtag::getAttribute
result = mgtmtag::getAttribute(name, /found)
Get the value of an attribute.
Return value
attribute value
Parameters
- name in required type=string
name of attribute
Keywords
- found out required type=boolean
set to a named variable to get whether the attribute name is found
top source mgtmtag::addAttribute
mgtmtag::addAttribute, name, value
Add an attribute to the tag.
Parameters
- name in required type=string
name of the attribute
- value in required type=string
value of the attribute
top source mgtmtag::_clone
result = mgtmtag::_clone()
Implement cloning.
Return value
MGtmNode
object
top source mgtmtag::init
result = mgtmtag::init( [_extra=keywords])
Create a markup tag node.
Return value
1 for success, 0 for otherwise
Keywords
- _extra in optional type=keywords
keywords to
MGtmNode::init
File attributes
Modification date: | Wed Feb 16 14:19:17 2011 |
Lines: | 239 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.