1 ///////////////////////////////////////////////////////////////////////////////
\r
3 // File : $Id: user.cpp,v 1.1 2007/05/05 17:00:43 faust Exp $
\r
4 // Subject : IBPP, User class implementation
\r
6 ///////////////////////////////////////////////////////////////////////////////
\r
8 // (C) Copyright 2000-2006 T.I.P. Group S.A. and the IBPP Team (www.ibpp.org)
\r
10 // The contents of this file are subject to the IBPP License (the "License");
\r
11 // you may not use this file except in compliance with the License. You may
\r
12 // obtain a copy of the License at http://www.ibpp.org or in the 'license.txt'
\r
13 // file which must have been distributed along with this file.
\r
15 // This software, distributed under the License, is distributed on an "AS IS"
\r
16 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
\r
17 // License for the specific language governing rights and limitations
\r
18 // under the License.
\r
20 ///////////////////////////////////////////////////////////////////////////////
\r
23 // * Tabulations should be set every four characters when editing this file.
\r
25 ///////////////////////////////////////////////////////////////////////////////
\r
28 #pragma warning(disable: 4786 4996)
\r
30 #pragma warning(disable: 4702)
\r
44 using namespace ibpp_internals;
\r
46 // Private implementation
\r
48 void IBPP::User::copyfrom(const IBPP::User& r)
\r
50 username = r.username;
\r
51 password = r.password;
\r
52 firstname = r.firstname;
\r
53 middlename = r.middlename;
\r
54 lastname = r.lastname;
\r
56 groupid = r.groupid;
\r
59 // Public implementation
\r
61 void IBPP::User::clear()
\r
63 username.erase(); password.erase();
\r
64 firstname.erase(); middlename.erase(); lastname.erase();
\r
65 userid = groupid = 0;
\r