Public Member Functions | Protected Member Functions | List of all members
ARCSArrayFactoryTemplate< X > Class Template Referenceabstract

Template class to implement array serialization. More...

#include <arcsarray.h>

Inheritance diagram for ARCSArrayFactoryTemplate< X >:
Inheritance graph
Collaboration diagram for ARCSArrayFactoryTemplate< X >:
Collaboration graph

Public Member Functions

virtual QString getTypeName () const
 Should return the name of the type factory.
 
virtual QString toString (QVariant v)
 Should return a string representation of data.
 
virtual QVariant parseString (QString s)
 Should create data from their string representation.
 
- Public Member Functions inherited from ARCSTypeFactory
virtual bool isInternal () const
 Tells wether the factory is internal or not (false by default).
 

Protected Member Functions

virtual QString separator () const
 
virtual QString baseType () const =0
 

Detailed Description

template<class X>
class ARCSArrayFactoryTemplate< X >

Template class to implement array serialization.

Factories for arrays should usually derive from this class. If you use the automated process to make your libraries, the name of your class should be ARCSTypeFactoryTemplate_<yourtypename>Array. As an example, here is how the internal type of intArray is partially implemented :

template class ARCSArrayTemplate<int>;
Q_DECLARE_METATYPE(intArray);
{
protected:
QString baseType() const { return "int"; }
};
Author
Jean-Yves Didier
Date
October, the 5th, 2009

Definition at line 134 of file arcsarray.h.


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