Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

SqContextManager Class Reference

Maintains the list of SqContext objects. More...

#include <ContextManager.h>

List of all members.

Public Methods

void AddContext (SqContext *item)
void RemoveContext (SqContext *item)
void DeleteAllContext ()
void ReplaceContext (SqContext *item, SqContext *newItem)
SqContextGetFirstContext () const
SqContextGetLastContext () const
SqContextGetNextContext (SqContext *pos) const
SqContextGetPrevContext (SqContext *pos) const
int GetContextCount () const
 SqContextManager ()
 Constructor method. More...

virtual ~SqContextManager ()
 Destructor method. More...

CString CreateContext (unsigned short timeout, CString UserData)
 Create a new context. More...

unsigned long DecodeKey (const char *contextKey)
 Decode the key passed and return the code number for it. More...

SqContextFindContext (unsigned long key)

Private Methods

void ConstructorInclude ()
 Method which must be called first in a constructor. More...

void DestructorInclude ()
 Method which must be called first in a destructor. More...


Private Attributes

SqContext_firstContext
int _countContext


Detailed Description

Maintains the list of SqContext objects.

Definition at line 45 of file ContextManager.h.


Constructor & Destructor Documentation

SqContextManager::SqContextManager ( )
 

Constructor method.

Definition at line 53 of file ContextManager.cpp.

SqContextManager::~SqContextManager ( ) [virtual]
 

Destructor method.

Definition at line 66 of file ContextManager.cpp.


Member Function Documentation

void SqContextManager::AddContext ( SqContext * item )
 

Definition at line 192 of file ContextManager.cpp.

Referenced by SqContext::ConstructorInclude(), ReplaceContext(), and SqContext::SetKey().

void SqContextManager::ConstructorInclude ( ) [private]
 

Method which must be called first in a constructor.

Definition at line 123 of file ContextManager.cpp.

CString SqContextManager::CreateContext ( unsigned short timeout,
CString UserData )
 

Create a new context.

Parameters:
timeout   The number of seconds the context will remain alive after the last time it was referenced.
UserData   The optional user data to store in the context.

Definition at line 80 of file ContextManager.cpp.

Referenced by SOAPBridge_ContextManager_i::allocateContext().

unsigned long SqContextManager::DecodeKey ( const char * contextKey )
 

Decode the key passed and return the code number for it.

Definition at line 110 of file ContextManager.cpp.

Referenced by CreateContext(), findContext(), SOAPBridge_ObjectContextManager_i::freeStoredObjectReference(), storeObjRef(), and SOAPBridge_ObjectContextManager_i::storeObjectReference().

void SqContextManager::DeleteAllContext ( )
 

Definition at line 325 of file ContextManager.cpp.

Referenced by SOAPBridge_ContextManager_i::~SOAPBridge_ContextManager_i().

void SqContextManager::DestructorInclude ( ) [private]
 

Method which must be called first in a destructor.

Definition at line 135 of file ContextManager.cpp.

Referenced by ~SqContextManager().

SqContext * SqContextManager::FindContext ( unsigned long key )
 

Definition at line 143 of file ContextManager.cpp.

Referenced by CreateContext(), findContext(), and storeObjRef().

int SqContextManager::GetContextCount ( ) const
 

Definition at line 499 of file ContextManager.cpp.

Referenced by SOAPBridge_ObjectContextManager_i::listCurrentContexts().

SqContext * SqContextManager::GetFirstContext ( ) const
 

Definition at line 380 of file ContextManager.cpp.

Referenced by DeleteAllContext(), DestructorInclude(), and SqContextManager::ContextIterator::IsFirst().

SqContext * SqContextManager::GetLastContext ( ) const
 

Definition at line 387 of file ContextManager.cpp.

Referenced by GetPrevContext(), and SqContextManager::ContextIterator::IsLast().

SqContext * SqContextManager::GetNextContext ( SqContext * pos ) const
 

Definition at line 413 of file ContextManager.cpp.

Referenced by SqContextManager::ContextIterator::Check(), and SqContextManager::ContextIterator::operator++().

SqContext * SqContextManager::GetPrevContext ( SqContext * pos ) const
 

Definition at line 455 of file ContextManager.cpp.

Referenced by SqContextManager::ContextIterator::Check(), and SqContextManager::ContextIterator::operator--().

void SqContextManager::RemoveContext ( SqContext * item )
 

Definition at line 248 of file ContextManager.cpp.

Referenced by SqContext::DestructorInclude(), ReplaceContext(), and SqContext::SetKey().

void SqContextManager::ReplaceContext ( SqContext * item,
SqContext * newItem )
 

Definition at line 334 of file ContextManager.cpp.


Member Data Documentation

int SqContextManager::_countContext [private]
 

Definition at line 50 of file ContextManager.h.

SqContext * SqContextManager::_firstContext [private]
 

Definition at line 49 of file ContextManager.h.


The documentation for this class was generated from the following files:
This documentation is part of the "SOAP to CORBA bridge" project
Copyright © 2000 by Lifeline Networks bv.
All rights are reserved.