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