mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 06:52:15 -07:00
Turn things in common into separate libs.
Took 2 hours 27 minutes
This commit is contained in:
parent
53d80efab8
commit
01378b8314
389 changed files with 336 additions and 233 deletions
27
libs/server/include/serverinfo_user_container.h
Normal file
27
libs/server/include/serverinfo_user_container.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef SERVERINFO_USER_CONTAINER
|
||||
#define SERVERINFO_USER_CONTAINER
|
||||
|
||||
class ServerInfo_User;
|
||||
|
||||
class ServerInfo_User_Container
|
||||
{
|
||||
protected:
|
||||
ServerInfo_User *userInfo;
|
||||
|
||||
public:
|
||||
explicit ServerInfo_User_Container(ServerInfo_User *_userInfo = nullptr);
|
||||
explicit ServerInfo_User_Container(const ServerInfo_User &_userInfo);
|
||||
ServerInfo_User_Container(const ServerInfo_User_Container &other);
|
||||
ServerInfo_User_Container &operator=(const ServerInfo_User_Container &other) = default;
|
||||
virtual ~ServerInfo_User_Container();
|
||||
ServerInfo_User *getUserInfo() const
|
||||
{
|
||||
return userInfo;
|
||||
}
|
||||
void setUserInfo(const ServerInfo_User &_userInfo);
|
||||
ServerInfo_User &
|
||||
copyUserInfo(ServerInfo_User &result, bool complete, bool internalInfo = false, bool sessionInfo = false) const;
|
||||
ServerInfo_User copyUserInfo(bool complete, bool internalInfo = false, bool sessionInfo = false) const;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue