|
| OstreamWidgetSerializer () |
|
| OstreamWidgetSerializer (const OstreamWidgetSerializer &)=delete |
|
| OstreamWidgetSerializer (OstreamWidgetSerializer &&) noexcept=default |
|
| ~OstreamWidgetSerializer () 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.
|
|
OstreamWidgetSerializer & | operator= (const OstreamWidgetSerializer &)=delete |
|
OstreamWidgetSerializer & | operator= (OstreamWidgetSerializer &&) noexcept=default |
|
void | reset () |
| Clear or reset, the serializer for re-use.
|
|
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 std::ostream.
- See also
- Widget::walk()