CMS 3D CMS Logo

IgSessionManager Class Reference

#include <Iguana/WebFramework/interface/IgSessionManager.h>

Inheritance diagram for IgSessionManager:

IgStateElement

List of all members.

Public Member Functions

IgStatecreateSession (const std::string &idCookie, IgState *parent)
IgStategetSession (const std::string &idCookie)
 IgSessionManager (IgState *state)
void setSession (const std::string &idCookie, IgState *state)
 ~IgSessionManager (void)

Private Types

typedef std::map< std::string,
IgState * > 
StateMap
typedef std::pair< std::string,
IgState * > 
StateMapElement

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (IgSessionManager)

Private Attributes

IgStatem_state
StateMap m_stateMap


Detailed Description

Definition at line 18 of file IgSessionManager.h.


Member Typedef Documentation

typedef std::map<std::string, IgState *> IgSessionManager::StateMap [private]

Definition at line 32 of file IgSessionManager.h.

typedef std::pair<std::string, IgState *> IgSessionManager::StateMapElement [private]

Definition at line 33 of file IgSessionManager.h.


Constructor & Destructor Documentation

IgSessionManager::IgSessionManager ( IgState state  ) 

Definition at line 19 of file IgSessionManager.cc.

References m_state, and IgState::put().

00020     : m_state (state)
00021 {
00022     m_state->put (s_key, this);   
00023 }

IgSessionManager::~IgSessionManager ( void   ) 

Definition at line 25 of file IgSessionManager.cc.

References IgState::detach(), and m_state.

00026 {
00027     m_state->detach (s_key);    
00028 }


Member Function Documentation

IgState * IgSessionManager::createSession ( const std::string &  idCookie,
IgState parent 
)

Definition at line 55 of file IgSessionManager.cc.

References m_stateMap, and state.

Referenced by IgWebServiceRegistry::executeURL().

00057 {
00058     IgState *state = new IgState (parent);
00059     m_stateMap.insert (StateMapElement (idCookie, state));
00060     return state;    
00061 }

IgState * IgSessionManager::getSession ( const std::string &  idCookie  ) 

Definition at line 45 of file IgSessionManager.cc.

References m_stateMap.

Referenced by IgWebServiceRegistry::executeURL().

00046 {
00047     if (m_stateMap.find (idCookie) != m_stateMap.end ())
00048     {
00049         return m_stateMap[idCookie];    
00050     }
00051     return 0;        
00052 }

IgSessionManager::IG_DECLARE_STATE_ELEMENT ( IgSessionManager   )  [private]

void IgSessionManager::setSession ( const std::string &  idCookie,
IgState state 
)

Definition at line 31 of file IgSessionManager.cc.

References m_stateMap.

00033 {
00034     if (m_stateMap.find (idCookie) == m_stateMap.end ())
00035     {
00036         m_stateMap.insert (StateMapElement (idCookie, state));  
00037     }
00038     else
00039     {
00040         m_stateMap [idCookie] = state;  
00041     }    
00042 }


Member Data Documentation

IgState* IgSessionManager::m_state [private]

Definition at line 35 of file IgSessionManager.h.

Referenced by IgSessionManager(), and ~IgSessionManager().

StateMap IgSessionManager::m_stateMap [private]

Definition at line 36 of file IgSessionManager.h.

Referenced by createSession(), getSession(), and setSession().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:39 2009 for CMSSW by  doxygen 1.5.4