Solution46
LibCommon.h
[詳解]
1 //=============================================================================
2 /// @file
3 /// 共通ライブラリヘッダファイル
4 ///
5 /// 共通ライブラリヘッダファイルです。
6 ///
7 /// $Id: LibCommon.h 245 2019-03-20 15:03:41Z admin $
8 /// $Date: 2019-03-21 00:03:41 +0900 (2019/03/21 (木)) $
9 /// $Author: admin $
10 ///
11 /// @attention なし
12 
13 #pragma once
14 #pragma managed( push, off )
15 
16 //=============================================================================
17 // インクルードファイル
18 #include <LibCommonDef.h>
19 
20 //=============================================================================
21 // 共通ライブラリ名前空間
22 namespace LibCommon {
23  //=========================================================================
24  /// 共通ライブラリクラス
25  ///
26  /// 共通ライブラリクラスです。
27  ///
28  /// @attention シングルトンクラスです。
29  ///
30  class LIB_COMMON_API CLibCommon final {
31  //=====================================================================
32  // 静的公開関数
33  public:
34  //---------------------------------------------------------------------
35  /// プロジェクト種別取得関数
36  ///
37  /// プロジェクト種別取得関数です。
38  ///
39  /// @param なし
40  /// @return 文字列ポインタ
41  /// @attention なし
42  ///
43  static wchar_t const* GetProjectType() noexcept;
44 
45  //---------------------------------------------------------------------
46  /// インスタンスハンドル取得関数
47  ///
48  /// インスタンスハンドル取得関数です。
49  ///
50  /// @param なし
51  /// @return インスタンスハンドル
52  /// @attention なし
53  ///
54  static HINSTANCE GetInstanceHandle() noexcept;
55 
56  //=====================================================================
57  // 削除関数
58  private:
59  CLibCommon() = delete;
60  CLibCommon( CLibCommon const& ) = delete;
61  CLibCommon& operator=( CLibCommon const& ) = delete;
62  };
63 }
64 
65 #pragma managed( pop )
共通ライブラリ定義ヘッダファイル
共通ライブラリ名前空間
Definition: CArray.h:23
#define LIB_COMMON_API
ダイナミックライブラリインポート宣言
Definition: LibCommonDef.h:44
共通ライブラリクラス
Definition: LibCommon.h:30