]> git.stg.codes - stg.git/blob - stglibs/ibpp.lib/user.cpp
Merge branch 'stg-2.409-radius'
[stg.git] / stglibs / ibpp.lib / user.cpp
1 ///////////////////////////////////////////////////////////////////////////////\r
2 //\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
5 //\r
6 ///////////////////////////////////////////////////////////////////////////////\r
7 //\r
8 //      (C) Copyright 2000-2006 T.I.P. Group S.A. and the IBPP Team (www.ibpp.org)\r
9 //\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
14 //\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
19 //\r
20 ///////////////////////////////////////////////////////////////////////////////\r
21 //\r
22 //      COMMENTS\r
23 //      * Tabulations should be set every four characters when editing this file.\r
24 //\r
25 ///////////////////////////////////////////////////////////////////////////////\r
26 \r
27 #ifdef _MSC_VER\r
28 #pragma warning(disable: 4786 4996)\r
29 #ifndef _DEBUG\r
30 #pragma warning(disable: 4702)\r
31 #endif\r
32 #endif\r
33 \r
34 #include "_ibpp.h"\r
35 \r
36 #ifdef HAS_HDRSTOP\r
37 #pragma hdrstop\r
38 #endif\r
39 \r
40 #include <iostream>\r
41 #include <sstream>\r
42 #include <iomanip>\r
43 \r
44 using namespace ibpp_internals;\r
45 \r
46 //      Private implementation\r
47 \r
48 void IBPP::User::copyfrom(const IBPP::User& r)\r
49 {\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
55         userid = r.userid;\r
56         groupid = r.groupid;\r
57 }\r
58 \r
59 //      Public implementation\r
60 \r
61 void IBPP::User::clear()\r
62 {\r
63         username.erase(); password.erase();\r
64         firstname.erase(); middlename.erase(); lastname.erase();\r
65         userid = groupid = 0;\r
66 }\r
67 \r
68 //\r
69 //      EOF\r
70 //\r