Xport Interface: element::operator <<

Inserts a markup object or PCDATA into the called element.

virtual markup& element::operator <<(
1st Variety const markup& mkup );
virtual markup& element::operator<<(2nd Variety
  const std::string& pcdat
);

Parameters

mkup

A markup derived object, which can be one of the following, an element, pcdata, comment, or procinstr.

pcdat

A string argument which represents PCDATA to insert as content.

Returns

Returns a reference to the element's base class, markup. This allows the chaining of the operation, which is most useful when inserting multiple markup objects.

Remarks

The first variety above inserts a markup object into the element object. The markup object is inserted at the end of the called element. If you wish to insert markup objects anywhere before the end of the current markup children, use the markup::insert() operation. This operation is equivalent to the push_back() operation.

The second variety inserts PCDATA into the called element. The passed PCDATA is enclosed within a pcdata object before being inserted into the called element, and is inserted at the end of any other markup objects which may be present in the element.

Complexity

Logarithmic

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.