Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
mcr::ISerializer Class Referenceabstract

Get/Set all values of an object. More...

#include <iserializer.h>

Inheritance diagram for mcr::ISerializer:
mcr::SerSignal mcr::SerTrigger mcr::SerCommand mcr::SerHidEcho mcr::SerInterrupt mcr::SerKey mcr::SerModifier mcr::SerMoveCursor mcr::SerNoOp mcr::SerScroll mcr::SerStringKey mcr::SerAction mcr::SerAlarm mcr::SerStaged

Public Types

typedef ISerializer *(* get) ()
 Get a serializer object to get/set all values of another object. More...
 

Public Member Functions

virtual size_t keyCount (bool canonical) const =0
 
virtual QString * keysArray (bool canonical) const =0
 
virtual QVariant value (const QString &name) const =0
 Get a named value.
 
virtual void setValue (const QString &name, const QVariant &val)=0
 
QStringList keys (bool canonical) const
 
ISerializerbuild (const QString &name, const QVariant &val)
 
QVariantMap values (bool canonical)
 Get all values of the object (Serialize) More...
 
void setValues (const QVariantMap &vals)
 Set all values of the object (Deserialize)
 

Detailed Description

Get/Set all values of an object.

Definition at line 35 of file iserializer.h.

Member Typedef Documentation

§ get

typedef ISerializer*(* mcr::ISerializer::get) ()

Get a serializer object to get/set all values of another object.

The serializer object is created with new and must be deleted manually

Definition at line 42 of file iserializer.h.

Member Function Documentation

§ values()

QVariantMap mcr::ISerializer::values ( bool  canonical)
inline

Get all values of the object (Serialize)

Parameters
canonicalUse string values over integers.

Definition at line 72 of file iserializer.h.


The documentation for this class was generated from the following file: