Dataquay 0.8
|
VariantEncoder is an abstract interface for classes that can convert between QVariant and strings for storage in literal Node objects. More...
#include <Node.h>
Public Member Functions | |
virtual | ~VariantEncoder () |
virtual QVariant | toVariant (const QString &n)=0 |
Convert a string to a variant. | |
virtual QString | fromVariant (const QVariant &v)=0 |
Convert a variant to a string. | |
VariantEncoder is an abstract interface for classes that can convert between QVariant and strings for storage in literal Node objects.
|
inlinevirtual |
|
pure virtual |
Convert a string to a variant.
The VariantEncoder is expected to be know the node type from which the string has been obtained.
|
pure virtual |
Convert a variant to a string.
The specific VariantEncoder is expected to know the node type which is the target of the conversion.