diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
| commit | ca28c0e618890330d429c0dc12429255b20f0c90 (patch) | |
| tree | ecc02da0184cf4e8bdba94dcdd831abdd1e51b3c /sess.cpp | |
| parent | b3a99e6e15af3be25394e66d1138bb2682f565c3 (diff) | |
tagging ychat-0.5.0ychat-0.5.0
Diffstat (limited to 'sess.cpp')
| -rw-r--r-- | sess.cpp | 32 |
1 files changed, 14 insertions, 18 deletions
@@ -4,36 +4,32 @@ #include "sess.h" sess::sess( string s_id ) -{ - this->sess_id=s_id; +{ + this->sess_id=s_id; } -string sess::get_id() -{ - return this->sess_id; -} +string sess::getId(){ return this->sess_id; } -void sess::invalidate() -{ - this->sess_id="0"; - this->sess_values.clear(); +void sess::invalidate() { + this->sess_id="0"; + this->sess_values.clear(); } void sess::setValue( string s_key, void *lpvalue ) { - this->sess_values[s_key]=lpvalue; + this->sess_values[s_key]=lpvalue; } -void *sess::get_elem( string s_key ) +void *sess::getValue( string s_key ) { - return this->sess_values[s_key]; + return this->sess_values[s_key]; } string sess::dump() { - string s_ret=string("Session Dump of Session ") + this->get_id(); - map<string, void*>::const_iterator it; - for(it=this->sess_values.begin();it!=this->sess_values.end();it++) - s_ret=s_ret + "\nkey: " + it->first; - return s_ret; + string s_ret=string("Session Dump of Session ") + this->getId(); + map<string, void*>::const_iterator it; + for(it=this->sess_values.begin();it!=this->sess_values.end();it++) + s_ret=s_ret + "\nkey: " + it->first; + return s_ret; } #endif |
