|
| XmlWidgetSerializer () |
|
| XmlWidgetSerializer (const XmlWidgetSerializer &)=delete |
|
| XmlWidgetSerializer (XmlWidgetSerializer &&) noexcept=default |
|
| ~XmlWidgetSerializer () noexcept override |
|
bool | add (const Widget *widget) override |
| Add a widget to the serializer.
|
|
void | add_property (const std::string &name, bool value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, const AlignFlags &value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, const char *value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, const Pattern &value, const Attributes &attrs={}) override |
| Add a property.
|
|
virtual void | add_property (const std::string &name, const Pattern &value, const Attributes &attrs={})=0 |
| Add a property.
|
|
void | add_property (const std::string &name, const std::string &value, const Attributes &attrs={}) override |
| Add a property.
|
|
virtual void | add_property (const std::string &name, const std::string &value, const Attributes &attrs={})=0 |
| Add a property.
|
|
void | add_property (const std::string &name, double value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, float value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, int value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, unsigned int value, const Attributes &attrs={}) |
| Add a property.
|
|
Context * | begin_child (const std::string &nodename) override |
| Create a new child.
|
|
void | end_child (Context *context) override |
| Complete a child.
|
|
XmlWidgetSerializer & | operator= (const XmlWidgetSerializer &)=delete |
|
XmlWidgetSerializer & | operator= (XmlWidgetSerializer &&) noexcept=default |
|
void | reset () |
| Clear or reset, the serializer for re-use.
|
|
void | write (const std::string &filename) |
| Write to the specified file path.
|
|
void | write (std::ostream &out) override |
| Write to the specified ostream.
|
|
| Serializer () noexcept=default |
|
| Serializer (const Serializer &)=default |
|
| Serializer (Serializer &&) noexcept=default |
|
virtual | ~Serializer () noexcept=default |
|
void | add_property (const std::string &name, bool value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, const AlignFlags &value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, const char *value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, double value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, float value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, int value, const Attributes &attrs={}) |
| Add a property.
|
|
void | add_property (const std::string &name, unsigned int value, const Attributes &attrs={}) |
| Add a property.
|
|
Serializer & | operator= (const Serializer &)=default |
|
Serializer & | operator= (Serializer &&) noexcept=default |
|
Serialize a widget tree to an XML document.
- See also
- Widget::walk()