CTR-Pia  5.4.3
Game Communication Engine
 全て クラス ネームスペース 関数 変数 型定義 列挙型 列挙型の値 ページ
session_SessionStationInfo.h
1 /*--------------------------------------------------------------------------------*
2  Copyright (C)Nintendo All rights reserved.
3 
4  These coded instructions, statements, and computer programs contain proprietary
5  information of Nintendo and/or its licensed developers and are protected by
6  national and international copyright laws. They may not be disclosed to third
7  parties or copied or duplicated in any form, in whole or in part, without the
8  prior written consent of Nintendo.
9 
10  The content herein is highly confidential and should be handled accordingly.
11  *--------------------------------------------------------------------------------*/
12 
13 
14 #pragma once
15 
16 #include <nn/pia/session/session_Definitions.h>
17 
18 namespace nn
19 {
20 namespace pia
21 {
22 namespace session
23 {
24 
25 /*!
26  @brief セッションに参加中のステーション情報です。
27  @see nn::pia::lan::LanStationInfo
28  @if CTR_DOC
29  @see nn::pia::local::UdsStationInfo
30  @endif
31  @if NIN_DOC
32  @see nn::pia::local::LdnStationInfo
33  @endif
34  */
36 {
37 public:
38  /*!
39  @brief ステーションの役割(接続していない/ホスト/クライアント)を表します。
40  */
42  {
43  StationInfoRole_None = 0, //!< 接続していない
44  StationInfoRole_Host, //!< ホスト
45  StationInfoRole_Client //!< クライアント
46  };
47 
48  /*!
49  @brief ステーションの役割を取得します。
50  @return ステーションの役割を返します。
51  */
52  StationInfoRole GetRole() const;
53 
54  /*!
55  @cond PRIVATE
56  */
57  void SetRole(StationInfoRole role);
58  virtual void Clear();
59  static uint32_t GetSerializedSize();
60  //! @endcond
61 
62 protected:
64  virtual ~SessionStationInfo();
65 
66  StationInfoRole m_Role;
67 };
68 }
69 }
70 } // end of namespace session