#include <Iguana/WebFramework/interface/IgSessionManager.h>
Public Member Functions | |
IgState * | createSession (const std::string &idCookie, IgState *parent) |
IgState * | getSession (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 | |
IgState * | m_state |
StateMap | m_stateMap |
Definition at line 18 of file IgSessionManager.h.
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.
IgSessionManager::IgSessionManager | ( | IgState * | state | ) |
IgSessionManager::~IgSessionManager | ( | void | ) |
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] |
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 }
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().