Files
winix/core/users.h
Tomasz Sowa ebd868fa33 removed: Done class (core/done.h, core/done.cpp)
removed: from Session: done, done_status, timers



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@594 e52654a7-88a9-db11-a3e9-0013d4bc506e
2010-02-28 21:33:06 +00:00

55 lines
762 B
C++
Executable File

/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2008-2010, Tomasz Sowa
* All rights reserved.
*
*/
#ifndef headerfilecmslucoreusers
#define headerfilecmslucoreusers
#include <map>
#include "user.h"
#include "ugcontainer.h"
class Users
{
typedef UGContainer<User> Table;
Table table;
public:
typedef Table::Iterator Iterator;
typedef Table::SizeType SizeType;
Users();
void Clear();
void ReadUsers();
bool AddUser(const User & user);
bool IsUser(const std::string & name);
User * GetUser(long user_id);
User * GetUser(const std::string & name);
long GetUserId(const std::string & name);
Iterator Begin();
Iterator End();
SizeType Size();
User & operator[](SizeType pos);
};
#endif