module firebird_user; private import ibase; private import std.math; /* private import firebird_util; private import firebird_database; private import firebird_date; private import firebird_transaction; private import std.c.string; */ /* Class User wraps all the information about a user that the engine can manage. */ class User { public: string username; string password; string firstname; string middlename; string lastname; uint userid; // Only relevant on unixes uint groupid; // Only relevant on unixes private: void copyfrom(User *r) { username = r.username; password = r.password; firstname = r.firstname; middlename = r.middlename; lastname = r.lastname; userid = r.userid; groupid = r.groupid; } public: void clear() { username.length = 0; password.length = 0; firstname.length = 0; middlename.length = 0; lastname.length = 0; userid = groupid = 0; } User opAssign(User *r) { copyfrom(r); return this; } this(User *r) { copyfrom(r); } this() { userid = 0; groupid = 0;} ~this() {}; }