KisaragiLibrary
 
読み取り中…
検索中…
一致する文字列を見つけられません
Doxygen_Template_Comment.h
[詳解]
1#pragma once
2#include <stdexcept>
3
4/**
5 * @file ファイル名.h
6 * @brief 簡単な説明
7 * @author 書いた人
8 * @date 日付(開始日?)
9 * @since 1.0.0
10 *
11 * 詳細は
12 * https://qiita.com/inabe49/items/23e615649e8539d857a8
13 * https://cercopes-z.com/XMLDoc/index.html
14 * https://cercopes-z.com/Doxygen/list-xmldoc-dxy.html
15 * この辺参照
16 */
17
18/**
19 * <summary>
20 * 名前空間の説明
21 * </summary>
22 */
23namespace SampleHoge
24{
25
26 /**
27 * <summary>
28 * 定数の概要
29 * </summary>
30 */
31 const int SECONDS_IN_A_DAY = 86400;
32
33 /// <summary>
34 /// 変数の説明
35 /// </summary>
37
38 /**
39 * <summary>
40 * 関数の説明
41 * </summary>
42 *
43 * <param name="?int">関数の引数</param>
44 * <returns>戻り値</returns>
45 */
46 bool HogeFunc(const int& _int) { return true; };
47
48 /**
49 * <summary>
50 * クラス概要
51 * </summary>
52 *
53 * <remarks>
54 * クラス備考
55 * </remarks>
56 */
58 {
59
60 /**
61 * <summary>
62 * 例外を投げるサンプルの関数です。
63 * </summary>
64 *
65 * <param name="age">年齢</param>
66 * <exception cref="std::invalid_argument">年齢が負の値の場合に投げられる例外です。</exception>
67 */
68 void ExThrowFunc(int age) {
69 if (age < 0) {
70 throw std::invalid_argument("年齢は負の値ではありません");
71 }
72 }
73 };
74}
クラス概要
Definition Doxygen_Template_Comment.h:58
void ExThrowFunc(int age)
例外を投げるサンプルの関数です。
Definition Doxygen_Template_Comment.h:68
名前空間の説明
Definition Doxygen_Template_Comment.h:24
int hogeInt
変数の説明
Definition Doxygen_Template_Comment.h:36
const int SECONDS_IN_A_DAY
定数の概要
Definition Doxygen_Template_Comment.h:31
bool HogeFunc(const int &_int)
関数の説明
Definition Doxygen_Template_Comment.h:46