corner imagecorner image
corner imagecorner image

Xport Interface: declaration::declaration

Constructor for declaration.

declaration::declaration(
  css_property property,
  const std::string& value
);

Parameters

property

A css_property enumeration which represents the css property for the declaration.

value

A string specifying the value of the passed property.

Remarks

declaration has no default constructor, since a stylesheet declaration consists of a css property and value. Thus, the property and value are always specified in the object's construction. After constructing the stylesheet_comment, it cannot be changed. It can be removed easily, however, and replaced with a new declaration.

Complexity

Constant

Example