Xport Interface: markup::markup_type

Returns the appropriate xhtml_markup_type enumeration for the called markup object.

  xhtml_markup_type markup::markup_type() const;

Parameters

None

Returns

Returns an enumerator of xhtml_markup_type. Can be one of the following values: mt_element, mt_pcdata, mt_comment, mt_processing_instruction, mt_doctype_declaration, or mt_unknown.

Remarks

This operation is used to determine the derived type of an object. This operation is overridden from all types derived from markup to return the respective enumerator for that type. By default, markup returns mt_unknown for this operation. Actually, mt_unknown should never be returned, as it is impossible to create an object of the base type markup.

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.

Complexity

Constant

Example

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.