/* * This file is a part of CMSLU -- Content Management System like Unix * and is not publicly distributed * * Copyright (c) 2008-2009, Tomasz Sowa * All rights reserved. * */ #ifndef headerfilecmslucoreusers #define headerfilecmslucoreusers #include #include "user.h" #include "ugcontainer.h" class Users { typedef UGContainer Table; Table table; public: typedef Table::Iterator Iterator; typedef Table::SizeType SizeType; Users(); void Clear(); void ReadUsers(); 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