The base class for all serializable objects. More...
#include <Valuable/Attribute.hpp>
Public Member Functions | |
| virtual bool | deserialize (const ArchiveElement &element)=0 |
| Deserializes (reads) this object from serializer element. More... | |
| virtual bool | deserializeXML (const DOMElement &element) |
| Deserializes (reads) this object from an XML element. More... | |
| bool | isSerializable () const |
| virtual ArchiveElement | serialize (Archive &archive) const =0 |
| Serializes (writes) this object to an element. More... | |
| void | setSerializable (bool v) |
The base class for all serializable objects.
|
pure virtual |
Deserializes (reads) this object from serializer element.
| element | Serialized element that holds the data that should be deserialized. |
Implemented in MultiWidgets::Widget, Valuable::AttributeT< T >, Valuable::AttributeT< Mode >, Valuable::AttributeT< FlexDirection >, Valuable::AttributeT< FlexWrap >, Valuable::AttributeT< ResizeToContent >, Valuable::AttributeT< Nimble::Vector2f >, Valuable::AttributeT< QString >, Valuable::AttributeT< Radiant::Color >, Valuable::AttributeT< Nimble::RectT< T > >, Valuable::AttributeT< MultiWidgets::LimitScaleOperator::Mode >, Valuable::AttributeT< MatrixType >, Valuable::AttributeT< AlignContent >, Valuable::AttributeT< JustifyContent >, Valuable::AttributeT< VectorType >, Valuable::AttributeT< Align >, Valuable::AttributeT< IncludeMode >, Valuable::AttributeT< Radiant::TimeStamp >, Valuable::AttributeT< Uuid >, Valuable::AttributeT< bool >, Valuable::AttributeT< StyleValue >, Valuable::AttributeT< Orientation >, Valuable::AttributeT< QMap< QString, QString > >, Valuable::AttributeT< QStringList >, Valuable::AttributeT< VectorT< T > >, Luminous::MultiHead, Valuable::AttributeFlagsT< T >, Valuable::AttributeFlagsT< EdgeFlags >, Valuable::AttributeFlagsT< Flags >, Valuable::AttributeFlagsT< MultiTouch::TrackedObjectType >, Valuable::AttributeFlagsT< LimitBehaviorFlags >, Valuable::AttributeContainer< std::map< Key, T, Compare, Allocator > >, Valuable::Node, Valuable::AttributeContainerT< T >, Valuable::AttributeContainerT< std::map< float, KeyFrame< T > > >, Valuable::AttributeContainerT< std::map< Key, T, Compare, Allocator > >, Valuable::AttributeContainerT< std::list< MultiWidgets::OperatorPtr > >, Valuable::FlagAliasT< T >, WebBrowserCef::BrowserWidget, Valuable::AttributeSizeT< ElementType, SizeClass, ElementAttribute >, Stylish::AttributeFont, MultiWidgets::KeyFrame< T >, Luminous::RGBCube, MultiWidgets::Key< KeyType >, Luminous::MultiHead::Area, Valuable::AttributeFrame, Resonant::ModulePanner, Valuable::AttributeAlias, Luminous::GLKeyStone, Stylish::AttributeBorder, and Stylish::AttributeBackground.
|
virtual |
Deserializes (reads) this object from an XML element.
This function is only for keeping backwards compatibility.
| element | XML element that is deserialized |
| bool Valuable::Serializable::isSerializable | ( | ) | const |
|
pure virtual |
Serializes (writes) this object to an element.
| archive | The serializer archive that is used to create the new element and maintains the serialization state and options. |
Implemented in Valuable::AttributeT< T >, Valuable::AttributeT< Mode >, Valuable::AttributeT< FlexDirection >, Valuable::AttributeT< FlexWrap >, Valuable::AttributeT< ResizeToContent >, Valuable::AttributeT< Nimble::Vector2f >, Valuable::AttributeT< QString >, Valuable::AttributeT< Radiant::Color >, Valuable::AttributeT< Nimble::RectT< T > >, Valuable::AttributeT< MultiWidgets::LimitScaleOperator::Mode >, Valuable::AttributeT< MatrixType >, Valuable::AttributeT< AlignContent >, Valuable::AttributeT< JustifyContent >, Valuable::AttributeT< VectorType >, Valuable::AttributeT< Align >, Valuable::AttributeT< IncludeMode >, Valuable::AttributeT< Radiant::TimeStamp >, Valuable::AttributeT< Uuid >, Valuable::AttributeT< bool >, Valuable::AttributeT< StyleValue >, Valuable::AttributeT< Orientation >, Valuable::AttributeT< QMap< QString, QString > >, Valuable::AttributeT< QStringList >, Valuable::AttributeT< VectorT< T > >, Valuable::Attribute, Valuable::Node, Valuable::AttributeContainerT< T >, Valuable::AttributeContainerT< std::map< float, KeyFrame< T > > >, Valuable::AttributeContainerT< std::map< Key, T, Compare, Allocator > >, Valuable::AttributeContainerT< std::list< MultiWidgets::OperatorPtr > >, Valuable::FlagAliasT< T >, MultiWidgets::Key< KeyType >, MultiWidgets::KeyFrame< T >, and Valuable::AttributeAlias.
| void Valuable::Serializable::setSerializable | ( | bool | v | ) |
| v | should this attribute be serialized with its host |