All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MultiWidgets::Key< KeyType > Struct Template Reference

Helper class for Animator to store key frames. More...

#include <MultiWidgets/Animator.hpp>

Inheritance diagram for MultiWidgets::Key< KeyType >:
Valuable::Serializable

Public Member Functions

virtual bool deserialize (const Valuable::ArchiveElement &element)
 Deserializes key-value-pair from archive element. More...
 
virtual Valuable::ArchiveElement serialize (Valuable::Archive &archive) const
 Serializes key-value-pair into archive. More...
 
- Public Member Functions inherited from Valuable::Serializable
virtual bool deserializeXML (const DOMElement &element)
 Deserializes (reads) this object from an XML element. More...
 
bool isSerializable () const
 
void setSerializable (bool v)
 

Public Attributes

float time
 Time of the keyframe in seconds.
 
KeyType value
 Value of the keyframe.
 

Detailed Description

template<class KeyType>
struct MultiWidgets::Key< KeyType >

Helper class for Animator to store key frames.

Template Parameters
KeyTypeType of the value in animation's key-value-pairs

Member Function Documentation

template<class KeyType >
virtual bool MultiWidgets::Key< KeyType >::deserialize ( const Valuable::ArchiveElement element)
inlinevirtual

Deserializes key-value-pair from archive element.

Parameters
elementArchive element to deserialize
Returns
Was the deserialization succesful?

Implements Valuable::Serializable.

template<class KeyType >
virtual Valuable::ArchiveElement MultiWidgets::Key< KeyType >::serialize ( Valuable::Archive archive) const
inlinevirtual

Serializes key-value-pair into archive.

Parameters
archiveTarget archive for serialization
Returns
The new serialized archive element

Implements Valuable::Serializable.