]> git.stg.codes - stg.git/blobdiff - libs/ibpp/user.cpp
Port to CMake, get rid of os_int.h.
[stg.git] / libs / ibpp / user.cpp
diff --git a/libs/ibpp/user.cpp b/libs/ibpp/user.cpp
new file mode 100644 (file)
index 0000000..e9cc1b4
--- /dev/null
@@ -0,0 +1,70 @@
+///////////////////////////////////////////////////////////////////////////////\r
+//\r
+//     File    : $Id: user.cpp,v 1.1 2007/05/05 17:00:43 faust Exp $\r
+//     Subject : IBPP, User class implementation\r
+//\r
+///////////////////////////////////////////////////////////////////////////////\r
+//\r
+//     (C) Copyright 2000-2006 T.I.P. Group S.A. and the IBPP Team (www.ibpp.org)\r
+//\r
+//     The contents of this file are subject to the IBPP License (the "License");\r
+//     you may not use this file except in compliance with the License.  You may\r
+//     obtain a copy of the License at http://www.ibpp.org or in the 'license.txt'\r
+//     file which must have been distributed along with this file.\r
+//\r
+//     This software, distributed under the License, is distributed on an "AS IS"\r
+//     basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the\r
+//     License for the specific language governing rights and limitations\r
+//     under the License.\r
+//\r
+///////////////////////////////////////////////////////////////////////////////\r
+//\r
+//     COMMENTS\r
+//     * Tabulations should be set every four characters when editing this file.\r
+//\r
+///////////////////////////////////////////////////////////////////////////////\r
+\r
+#ifdef _MSC_VER\r
+#pragma warning(disable: 4786 4996)\r
+#ifndef _DEBUG\r
+#pragma warning(disable: 4702)\r
+#endif\r
+#endif\r
+\r
+#include "_ibpp.h"\r
+\r
+#ifdef HAS_HDRSTOP\r
+#pragma hdrstop\r
+#endif\r
+\r
+#include <iostream>\r
+#include <sstream>\r
+#include <iomanip>\r
+\r
+using namespace ibpp_internals;\r
+\r
+//     Private implementation\r
+\r
+void IBPP::User::copyfrom(const IBPP::User& r)\r
+{\r
+       username = r.username;\r
+       password = r.password;\r
+       firstname = r.firstname;\r
+       middlename = r.middlename;\r
+       lastname = r.lastname;\r
+       userid = r.userid;\r
+       groupid = r.groupid;\r
+}\r
+\r
+//     Public implementation\r
+\r
+void IBPP::User::clear()\r
+{\r
+       username.erase(); password.erase();\r
+       firstname.erase(); middlename.erase(); lastname.erase();\r
+       userid = groupid = 0;\r
+}\r
+\r
+//\r
+//     EOF\r
+//\r