-
Code's Tags
-
Your Codes
-
Reffers
-
Linked Codes
|
Code:
Short link for Twitter:
HTML:
HTML view:
Copy Source | Copy HTML- typedef std::string TWString;
- typedef __int64 bigint;
-
- const double DBL_NULL = 0;
- const int INT_NULL = -1;
- const std::string STR_NULL = UnicodeString();
-
-
- struct TUser : public BaseType
- {
- TUser(
- int AId = INT_NULL,
- const UnicodeString &ALogin = STR_NULL,
- const UnicodeString &AName = STR_NULL,
- const UnicodeString &ASurname = STR_NULL,
- const UnicodeString &ASecondName = STR_NULL,
- const UnicodeString &APassword = UnicodeString(),
- const bigint AAppointmentId = INT_NULL,
- bool ADisabled = false)
- : Id(AId),
- Login(ALogin),
- Name(AName),
- Surname(ASurname),
- SecondName(ASecondName),
- Password(APassword),
- {}
- bool operator!=(const TUser &Other) const
- {
- return !operator==(Other);
- }
- bool operator<(const TUser &Other) const
- {
- return Id < (Other.Id);
- }
- bool operator==(const TUser &Other) const
- {
- return Id == Other.Id;
- }
- bigint Id;
- UnicodeString Login;
- UnicodeString Name;
- UnicodeString Password;
- void StoreValue()
- {
- FieldStorage("Id", Id);
- FieldStorage("Login", Login);
- FieldStorage("Name", Name);
- FieldStorage("Salary", Salary);
- }
- };
|