[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

LGlobalsContext



Overview:

LGlobalsContext is a PowerPlant class that is a mix-in for any class which needs to save the A5 or A4 (global variables) context for use in a Toolbox callback.

Methods :

The methods in this class are:

 

LGlobalsContext()  
~LGlobalsContext()  
GetGlobals()  
 

Data Members:

The data members in this class are:

 

mSavedGlobals  
 

Operation:

This class is defined as a null class for PowerPC or 68K CFM builds. Designed to be used in concert with StSetupGlobals.

Source files:

(Networking Classes)

UCallbackUtils.h

UCallbackUtils.cp

See also:

LMacTCPDNSOperation

LMacTCPTCPEndpoint

LMacTCPUDPEndpoint

StMacTCPOperation

StMacTCPUDPOperation

StOpenTptOperation

LGlobalsContext()

Purpose:

The constructor creates the object, saving global variables context. Assumes that the global variables register (either A5 or A4) is correct at this time. On PowerPC or 68K CFM, it does nothing.

Access :

Public

Prototype:

inline LGlobalsContext();
Parameters:

None

~LGlobalsContext()

Purpose:

The destructor destroys the object.

Access :

Public

Prototype:

inline ~LGlobalsContext();

GetGlobals()

Purpose:

Returns the value of mSavedGlobals.

Access :

Public

Prototype:

inline SInt32 GetGlobals();
Parameters:

None

Return:

The value of mSavedGlobals.

mSavedGlobals

Purpose:

The saved globals in A5 or A4.

Access :

Private

Prototype:

SInt32 mSavedGlobals;

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000