Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
serverinfo_user_container.h
Go to the documentation of this file.
1
#ifndef SERVERINFO_USER_CONTAINER
2
#define SERVERINFO_USER_CONTAINER
3
4
class
ServerInfo_User
;
5
6
class
ServerInfo_User_Container
7
{
8
protected
:
9
ServerInfo_User
*
userInfo
;
10
11
public
:
12
explicit
ServerInfo_User_Container
(
ServerInfo_User
*_userInfo =
nullptr
);
13
explicit
ServerInfo_User_Container
(
const
ServerInfo_User
&_userInfo);
14
ServerInfo_User_Container
(
const
ServerInfo_User_Container
&other);
15
ServerInfo_User_Container
&
operator=
(
const
ServerInfo_User_Container
&other) =
default
;
16
virtual
~ServerInfo_User_Container
();
17
[[nodiscard]]
ServerInfo_User
*
getUserInfo
()
const
18
{
19
return
userInfo
;
20
}
21
void
setUserInfo
(
const
ServerInfo_User
&_userInfo);
22
ServerInfo_User
&
23
copyUserInfo
(
ServerInfo_User
&result,
bool
complete,
bool
internalInfo =
false
,
bool
sessionInfo =
false
)
const
;
24
[[nodiscard]]
ServerInfo_User
25
copyUserInfo
(
bool
complete,
bool
internalInfo =
false
,
bool
sessionInfo =
false
)
const
;
26
};
27
28
#endif
ServerInfo_User_Container::copyUserInfo
ServerInfo_User & copyUserInfo(ServerInfo_User &result, bool complete, bool internalInfo=false, bool sessionInfo=false) const
Definition
serverinfo_user_container.cpp:33
ServerInfo_User_Container::userInfo
ServerInfo_User * userInfo
Definition
serverinfo_user_container.h:9
ServerInfo_User_Container::getUserInfo
ServerInfo_User * getUserInfo() const
Definition
serverinfo_user_container.h:17
ServerInfo_User_Container::ServerInfo_User_Container
ServerInfo_User_Container(ServerInfo_User *_userInfo=nullptr)
Definition
serverinfo_user_container.cpp:5
ServerInfo_User_Container::operator=
ServerInfo_User_Container & operator=(const ServerInfo_User_Container &other)=default
ServerInfo_User_Container::setUserInfo
void setUserInfo(const ServerInfo_User &_userInfo)
Definition
serverinfo_user_container.cpp:28
ServerInfo_User
Definition
serverinfo_user.proto:2
libcockatrice_network
libcockatrice
network
server
remote
serverinfo_user_container.h
Generated by
1.18.0