urbackup_backend/Interface/User.h
2011-01-06 17:43:38 +01:00

38 lines
612 B
C++

#ifndef IUSER_H
#define IUSER_H
#include <map>
#include <string>
#include "Object.h"
#include "Types.h"
struct SUser
{
std::wstring username;
std::wstring session;
std::wstring ident_data;
int id;
str_map mStr;
int_map mInt;
float_map mFloat;
std::map<std::string, IObject* > mCustom;
unsigned int lastused;
void* getCustomPtr(std::string str)
{
std::map<std::string, IObject* >::iterator iter=mCustom.find(str);
if( iter!=mCustom.end() )
{
return iter->second;
}
else
return NULL;
}
//private
void *mutex;
void *lock;
};
#endif //IUSER_H