All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Valuable::Serializable Class Referenceabstract

The base class for all serializable objects. More...

#include <Valuable/Attribute.hpp>

Inheritance diagram for Valuable::Serializable:
MultiWidgets::Key< KeyType > MultiWidgets::KeyFrame< T > Valuable::Attribute Valuable::AttributeContainerT< std::list< MultiWidgets::OperatorPtr > > Valuable::AttributeContainerT< std::map< float, KeyFrame< T > > > Valuable::AttributeContainerT< std::map< Key, T, Compare, Allocator > > Valuable::AttributeFlagsT< EdgeFlags > Valuable::AttributeFlagsT< Flags > Valuable::AttributeFlagsT< LimitBehaviorFlags > Valuable::AttributeFlagsT< MultiTouch::TrackedObjectType > Valuable::AttributeT< Align > Valuable::AttributeT< AlignContent > Valuable::AttributeT< bool > Valuable::AttributeT< FlexDirection > Valuable::AttributeT< FlexWrap > Valuable::AttributeT< IncludeMode > Valuable::AttributeT< JustifyContent > Valuable::AttributeT< MatrixType > Valuable::AttributeT< Mode > Valuable::AttributeT< MultiWidgets::LimitScaleOperator::Mode > Valuable::AttributeT< Nimble::RectT< T > > Valuable::AttributeT< Nimble::Vector2f > Valuable::AttributeT< Orientation > Valuable::AttributeT< QMap< QString, QString > > Valuable::AttributeT< QString > Valuable::AttributeT< QStringList > Valuable::AttributeT< Radiant::Color > Valuable::AttributeT< Radiant::TimeStamp > Valuable::AttributeT< ResizeToContent > Valuable::AttributeT< StyleValue > Valuable::AttributeT< Uuid > Valuable::AttributeT< VectorT< T > > Valuable::AttributeT< VectorType > Stylish::AttributeBackground Stylish::AttributeBorder Stylish::AttributeFont Valuable::AttributeAlias Valuable::AttributeContainerT< T > Valuable::AttributeFlagsT< T > Valuable::AttributeFrame Valuable::AttributeSizeT< ElementType, SizeClass, ElementAttribute > Valuable::AttributeT< T > Valuable::FlagAlias Valuable::Node

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)
 

Detailed Description

The base class for all serializable objects.

Member Function Documentation

virtual bool Valuable::Serializable::deserialize ( const ArchiveElement element)
pure virtual

Deserializes (reads) this object from serializer element.

Parameters
elementSerialized element that holds the data that should be deserialized.
Returns
Returns true if the read process worked correctly, and false otherwise.

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 bool Valuable::Serializable::deserializeXML ( const DOMElement element)
virtual

Deserializes (reads) this object from an XML element.

This function is only for keeping backwards compatibility.

Parameters
elementXML element that is deserialized
Returns
Returns true if the read process worked correctly, and false otherwise.
bool Valuable::Serializable::isSerializable ( ) const
Returns
true if this attribute should be serialized with its host
virtual ArchiveElement Valuable::Serializable::serialize ( Archive archive) const
pure virtual

Serializes (writes) this object to an element.

Parameters
archiveThe serializer archive that is used to create the new element and maintains the serialization state and options.
Returns
The new serialized element.

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)
Parameters
vshould this attribute be serialized with its host