[Classes] [Prev] [Next] [Methods]

CGlobalUser

Methods Index

Heritage
Description
Usage
Public Methods

CGlobalUser


Heritage

Superclass: CNotifier

Subclasses: None


Description

CGlobalUser is a base class by which XVT-Power++ users provide application framework objects with a reference to application-specific global information/objects. It is a model of CGlobalClassLib for users. You can insert your own references to global objects or flags or attributes.


Usage

The use of this class is optional; it is available as a hook. This class is instantiated by the user's application object and given to CApplication::IApplication to process. The variables are accessed thereafter through CObjectRWC's GU pointer.

Beginning with release 4.5, you should not make a copy of this file any longer, instead of deriving your own class. Rather the correct method for usage is to derive from this class and cast the return of GetGU() to your type. Here is an example:

        class MyCGlobalUser : public CGlobalUser
        {
        public:
            DoMyFunction( );
        }

        ...

        #define MYGU ((MyCGlobalUser 
*)CObjectRWC::GetGU( ))
MYGU -> DoMyStuff( );
Your derived class can be registered as before with IApplication().


Public Methods

CGlobalUser(void);


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.