InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IData< T > Class Template Referenceabstract

#include <IData.h>

Inheritance diagram for IData< T >:
IPMUnknown

Public Types

typedef T value_type
 

Public Member Functions

virtual const T & Get () const =0
 
virtual void Set (const T &data)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

template<class T>
class IData< T >

Template class for properties - provides a basic mechanism for getting and setting a property (vector of properties, etc) of type T. The Get() and Set() methods provide a typeless interface to any property in the system.

Note
CData exists as a straightforward base class.
See Also
CData

Member Function Documentation

template<class T >
virtual const T& IData< T >::Get () const
pure virtual
Get the value of the property.

Returns
a const reference to the property.
template<class T >
virtual void IData< T >::Set (const T & data)
pure virtual
Set the value of the property.

Parameters
dataa const reference to the property. The encapsulated property will be updated with this value.