|
Returns the mt_comment
enumerator of xhtml_markup_type
, to indicate the called markup object is a comment
object.
xhtml_markup_type comment::markup_type() const;
Returns mt_comment, which is an enumerator of xhtml_markup_type
.
This operation is used to determine the derived type of the called object derived from markup
. This operation is overridden from all
types derived from markup
to return the respective enumerator for that type. This operation is overridden in comment
to
simply return the enumerator mt_comment
.
Many object oriented experts feel that operations such as this, break the object oriented paradigm, and that there should be no reason to disclose the derived type of an object. In practice, however, this need often arises, so this operation is included for those events.
Constant