|
||
class CAnimDll : public CBase;
Animation DLL factory interface.
An animation DLL class must be a derived class of CAnimDll, and can be thought of as a server side factory class. CAnimDll
consists of a single pure virtual factory function, CAnimDll::CreateInstanceL(TInt)
, which is used to create new instances of animation objects of type CAnim
contained in the DLL. Animation DLL objects are created by the CreateCAnimDllL() function, which is called by the window
server at the request of the client.
For efficiency reasons, it makes sense to collect multiple animation classes into a single DLL, even if they are otherwise logically quite separate classes.
CBase
-
Base class for all classes to be instantiated on the heap.
CAnimDll
- Animation DLL factory interface.
Defined in CAnimDll
:
CreateInstanceL(TInt)
Factory function for animation DLLs.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...virtual CAnim* CreateInstanceL(TInt aType)=0;
Factory function for animation DLLs.
It must be provided in the derived class.
The parameter can be used to differentiate between multiple animation classes contained in the same animation DLL.
|
|