Solution46
CConsole.h ファイル

コンソール入出力クラスヘッダコンソール [詳解]

#include <CStream.h>
#include <CMutex.h>
#include <CEvent.h>
#include <CThread.h>
CConsole.h の依存先関係図:
被依存関係図:

[ソースコード]

クラス

class  LibCommon::CConsole
 コンソール入出力クラス [詳解]
 
struct  LibCommon::CConsole::SInputRecord
 入力レコード構造体 [詳解]
 

名前空間

 LibCommon
 共通ライブラリ名前空間
 

マクロ定義

#define ConsoleInstance()    LibCommon::CConsole::GetInstance()
 インスタンス取得マクロ [詳解]
 
#define ConsoleChar(...)    ConsoleInstance().OutputChar(__VA_ARGS__)
 1文字出力マクロ [詳解]
 
#define ConsoleString(...)    ConsoleInstance().OutputString(__VA_ARGS__)
 文字列出力マクロ [詳解]
 
#define ConsoleFormat(...)    ConsoleInstance().OutputFormat(__VA_ARGS__)
 書式設定文字列出力マクロ [詳解]
 
#define ConsoleNewLine()    ConsoleInstance().OutputNewLine()
 改行出力マクロ [詳解]
 
#define ConsoleLineString(...)    ConsoleInstance().OutputLineString(__VA_ARGS__)
 文字列行出力マクロ [詳解]
 
#define ConsoleLineFormat(...)    ConsoleInstance().OutputLineFormat(__VA_ARGS__)
 書式設定文字列行出力マクロ [詳解]
 
#define ConsoleExLineFormat(...)    ConsoleInstance().ExOutputLineFormat(__VA_ARGS__)
 拡張書式設定文字列行出力マクロ [詳解]
 
#define ConsoleNoIndent(...)    ConsoleInstance().ExOutputLineFormat(true,false,__VA_ARGS__)
 インデントなし書式設定文字列行出力マクロ [詳解]
 
#define ConsoleLine(...)    ConsoleInstance().ExOutputLineFormat(false,false,__VA_ARGS__)
 ヘッダインデントなし書式設定文字列行出力マクロ [詳解]
 
#define ConsoleFunction()    ConsoleLineFormat(L"%s()",__FUNCTIONW__)
 関数マクロ [詳解]
 
#define ConsoleIndent()    ConsoleInstance().Indent()
 インデントマクロ [詳解]
 
#define ConsoleUnindent()    ConsoleInstance().Unindent()
 アンインデントマクロ [詳解]
 
#define ConsoleBlockIn(...)    ConsoleLineFormat(__VA_ARGS__);ConsoleIndent()
 ブロック開始マクロ [詳解]
 
#define ConsoleBlockOut(...)    ConsoleUnindent();ConsoleLineFormat(__VA_ARGS__)
 ブロック終了マクロ [詳解]
 
#define ConsoleHeader()    ConsoleBlockIn (L"%s() {", __FUNCTIONW__)
 関数ヘッダマクロ [詳解]
 
#define ConsoleFooter()    ConsoleBlockOut(L"} // %s()",__FUNCTIONW__)
 関数フッタマクロ [詳解]
 
#define ConsoleInputHandle()    ConsoleInstance().GetInputHandle()
 入力ハンドル取得マクロ [詳解]
 
#define ConsoleOutputHandle()    ConsoleInstance().GetOutputHandle()
 出力ハンドル取得マクロ [詳解]
 
#define ConsoleWindowHandle()    ConsoleInstance().GetWindowHandle()
 ウィンドウハンドル取得マクロ [詳解]
 
#define ConsoleGetFontSize(...)    ConsoleInstance().GetFontSize(__VA_ARGS__)
 フォントサイズ取得マクロ [詳解]
 
#define ConsoleGetBufferSize(...)    ConsoleInstance().GetSize(__VA_ARGS__)
 出力バッファサイズ取得マクロ [詳解]
 
#define ConsoleBufferSize(...)    ConsoleInstance().SetBufferSize(__VA_ARGS__)
 出力バッファサイズ設定マクロ [詳解]
 
#define ConsoleGetBufferPosition(...)   ConsoleInstance().GetBufferPosition(__VA_ARGS__)
 出力バッファ表示位置取得マクロ [詳解]
 
#define ConsoleSetBufferPosition(...)   ConsoleInstance().SetBufferPosition(__VA_ARGS__)
 出力バッファ表示位置設定マクロ [詳解]
 
#define ConsoleGetBufferArea(...)    ConsoleInstance().GetBufferArea(__VA_ARGS__)
 出力バッファ表示領域取得マクロ [詳解]
 
#define ConsoleSetBufferArea(...)    ConsoleInstance().SetBufferArea(__VA_ARGS__)
 出力バッファ表示領域設定マクロ [詳解]
 
#define ConsoleGetWindowArea(...)    ConsoleInstance().GetWindowArea(__VA_ARGS__)
 ウィンドウ表示領域取得マクロ [詳解]
 
#define ConsoleSetWindowArea(...)    ConsoleInstance().SetWindowArea(__VA_ARGS__)
 ウィンドウ表示領域設定マクロ [詳解]
 
#define ConsoleGetCursorPosition(...)   ConsoleInstance().GetCursorPosition(__VA_ARGS__)
 カーソル位置取得マクロ [詳解]
 
#define ConsoleSetCursorPosition(...)   ConsoleInstance().SetCursorPosition(__VA_ARGS__)
 カーソル位置設定マクロ [詳解]
 
#define ConsoleGetCursor(...)    ConsoleInstance().GetCursor(__VA_ARGS__)
 カーソル位置取得マクロ [詳解]
 
#define ConsoleSetCursor(...)    ConsoleInstance().SetCursor(__VA_ARGS__)
 カーソル位置設定マクロ [詳解]
 
#define ConsoleScroll(...)    ConsoleInstance().ScrollWindow(__VA_ARGS__)
 スクロールマクロ [詳解]
 
#define ConsoleInputCount()    ConsoleInstance().GetInputCount()
 入力レコード数取得マクロ [詳解]
 
#define ConsoleInputChar(...)    ConsoleInstance().InputChar(__VA_ARGS__)
 1文字入力マクロ [詳解]
 
#define ConsoleInput(...)    ConsoleInstance().InputString(__VA_ARGS__)
 文字列入力マクロ [詳解]
 
#define ConsoleInputDirect(...)    ConsoleInstance().InputDirect(__VA_ARGS__)
 直接文字入力マクロ [詳解]
 
#define ConsoleKbHitDirect()    ConsoleInstance().KbHitDirect()
 直接入力検査マクロ [詳解]
 
#define ConsoleClearInput()    ConsoleInstance().ClearInputBuffer()
 入力バッファクリアマクロ [詳解]
 
#define ConsoleHitKey(...)    ConsoleInstance().HitAnyKey(__VA_ARGS__)
 キー入力待ちマクロ [詳解]
 
#define ConsoleYesNo(...)    ConsoleInstance().YesNoKey(__VA_ARGS__)
 確認入力待ちマクロ [詳解]
 
#define ConsoleStopInput()    ConsoleInstance().StopInput()
 入力中止要求マクロ [詳解]
 

詳解

コンソール入出力クラスヘッダコンソール

コンソール入出力クラスヘッダコンソールです。

Id
CConsole.h 245 2019-03-20 15:03:41Z admin
Date
2019-03-21 00:03:41 +0900 (2019/03/21 (木))
Author
admin
注意
なし

CConsole.h に定義があります。

マクロ定義詳解

#define ConsoleInstance ( )    LibCommon::CConsole::GetInstance()

インスタンス取得マクロ

CConsole.h25 行目に定義があります。

#define ConsoleChar (   ...)    ConsoleInstance().OutputChar(__VA_ARGS__)

1文字出力マクロ

CConsole.h26 行目に定義があります。

参照元 LibLogOut::CLibLogOut::~CLibLogOut().

#define ConsoleString (   ...)    ConsoleInstance().OutputString(__VA_ARGS__)
#define ConsoleFormat (   ...)    ConsoleInstance().OutputFormat(__VA_ARGS__)

書式設定文字列出力マクロ

CConsole.h28 行目に定義があります。

#define ConsoleLineString (   ...)    ConsoleInstance().OutputLineString(__VA_ARGS__)

文字列行出力マクロ

CConsole.h30 行目に定義があります。

#define ConsoleLineFormat (   ...)    ConsoleInstance().OutputLineFormat(__VA_ARGS__)

書式設定文字列行出力マクロ

CConsole.h31 行目に定義があります。

#define ConsoleExLineFormat (   ...)    ConsoleInstance().ExOutputLineFormat(__VA_ARGS__)

拡張書式設定文字列行出力マクロ

CConsole.h32 行目に定義があります。

#define ConsoleNoIndent (   ...)    ConsoleInstance().ExOutputLineFormat(true,false,__VA_ARGS__)

インデントなし書式設定文字列行出力マクロ

CConsole.h33 行目に定義があります。

#define ConsoleFunction ( )    ConsoleLineFormat(L"%s()",__FUNCTIONW__)

関数マクロ

CConsole.h35 行目に定義があります。

#define ConsoleIndent ( )    ConsoleInstance().Indent()

インデントマクロ

CConsole.h36 行目に定義があります。

#define ConsoleUnindent ( )    ConsoleInstance().Unindent()

アンインデントマクロ

CConsole.h37 行目に定義があります。

#define ConsoleBlockIn (   ...)    ConsoleLineFormat(__VA_ARGS__);ConsoleIndent()

ブロック開始マクロ

CConsole.h38 行目に定義があります。

#define ConsoleBlockOut (   ...)    ConsoleUnindent();ConsoleLineFormat(__VA_ARGS__)

ブロック終了マクロ

CConsole.h39 行目に定義があります。

#define ConsoleHeader ( )    ConsoleBlockIn (L"%s() {", __FUNCTIONW__)

関数ヘッダマクロ

CConsole.h40 行目に定義があります。

#define ConsoleFooter ( )    ConsoleBlockOut(L"} // %s()",__FUNCTIONW__)

関数フッタマクロ

CConsole.h41 行目に定義があります。

#define ConsoleInputHandle ( )    ConsoleInstance().GetInputHandle()

入力ハンドル取得マクロ

CConsole.h42 行目に定義があります。

#define ConsoleOutputHandle ( )    ConsoleInstance().GetOutputHandle()

出力ハンドル取得マクロ

CConsole.h43 行目に定義があります。

#define ConsoleWindowHandle ( )    ConsoleInstance().GetWindowHandle()

ウィンドウハンドル取得マクロ

CConsole.h44 行目に定義があります。

参照元 AppTest::CAppTest::ResumeConfigConsole(), AppTest::CAppTest::SaveConfigConsole(), LibLogOut::CLibLogOut::~CLibLogOut().

#define ConsoleGetFontSize (   ...)    ConsoleInstance().GetFontSize(__VA_ARGS__)

フォントサイズ取得マクロ

CConsole.h45 行目に定義があります。

#define ConsoleGetBufferSize (   ...)    ConsoleInstance().GetSize(__VA_ARGS__)

出力バッファサイズ取得マクロ

CConsole.h46 行目に定義があります。

#define ConsoleBufferSize (   ...)    ConsoleInstance().SetBufferSize(__VA_ARGS__)

出力バッファサイズ設定マクロ

CConsole.h47 行目に定義があります。

参照元 AppTest::CAppTest::ResumeConfigConsole().

#define ConsoleGetBufferPosition (   ...)    ConsoleInstance().GetBufferPosition(__VA_ARGS__)

出力バッファ表示位置取得マクロ

CConsole.h48 行目に定義があります。

#define ConsoleSetBufferPosition (   ...)    ConsoleInstance().SetBufferPosition(__VA_ARGS__)

出力バッファ表示位置設定マクロ

CConsole.h49 行目に定義があります。

#define ConsoleGetBufferArea (   ...)    ConsoleInstance().GetBufferArea(__VA_ARGS__)

出力バッファ表示領域取得マクロ

CConsole.h50 行目に定義があります。

#define ConsoleSetBufferArea (   ...)    ConsoleInstance().SetBufferArea(__VA_ARGS__)

出力バッファ表示領域設定マクロ

CConsole.h51 行目に定義があります。

#define ConsoleGetWindowArea (   ...)    ConsoleInstance().GetWindowArea(__VA_ARGS__)

ウィンドウ表示領域取得マクロ

CConsole.h52 行目に定義があります。

#define ConsoleSetWindowArea (   ...)    ConsoleInstance().SetWindowArea(__VA_ARGS__)

ウィンドウ表示領域設定マクロ

CConsole.h53 行目に定義があります。

#define ConsoleGetCursorPosition (   ...)    ConsoleInstance().GetCursorPosition(__VA_ARGS__)

カーソル位置取得マクロ

CConsole.h54 行目に定義があります。

#define ConsoleSetCursorPosition (   ...)    ConsoleInstance().SetCursorPosition(__VA_ARGS__)

カーソル位置設定マクロ

CConsole.h55 行目に定義があります。

#define ConsoleGetCursor (   ...)    ConsoleInstance().GetCursor(__VA_ARGS__)

カーソル位置取得マクロ

CConsole.h56 行目に定義があります。

#define ConsoleSetCursor (   ...)    ConsoleInstance().SetCursor(__VA_ARGS__)

カーソル位置設定マクロ

CConsole.h57 行目に定義があります。

#define ConsoleScroll (   ...)    ConsoleInstance().ScrollWindow(__VA_ARGS__)

スクロールマクロ

CConsole.h58 行目に定義があります。

#define ConsoleInputCount ( )    ConsoleInstance().GetInputCount()

入力レコード数取得マクロ

CConsole.h59 行目に定義があります。

#define ConsoleInputChar (   ...)    ConsoleInstance().InputChar(__VA_ARGS__)

1文字入力マクロ

CConsole.h60 行目に定義があります。

参照元 LibCommon::CConsoleMenu::ExecSubThread().

#define ConsoleInput (   ...)    ConsoleInstance().InputString(__VA_ARGS__)

文字列入力マクロ

CConsole.h61 行目に定義があります。

参照元 AppTest::CAppTestMenuConsole::TestInputString().

#define ConsoleInputDirect (   ...)    ConsoleInstance().InputDirect(__VA_ARGS__)

直接文字入力マクロ

CConsole.h62 行目に定義があります。

#define ConsoleKbHitDirect ( )    ConsoleInstance().KbHitDirect()

直接入力検査マクロ

CConsole.h63 行目に定義があります。

参照元 LibLogOut::CLibLogOut::~CLibLogOut().

#define ConsoleClearInput ( )    ConsoleInstance().ClearInputBuffer()

入力バッファクリアマクロ

CConsole.h64 行目に定義があります。

参照元 LibLogOut::CLibLogOut::~CLibLogOut().

#define ConsoleHitKey (   ...)    ConsoleInstance().HitAnyKey(__VA_ARGS__)

キー入力待ちマクロ

CConsole.h65 行目に定義があります。

#define ConsoleYesNo (   ...)    ConsoleInstance().YesNoKey(__VA_ARGS__)

確認入力待ちマクロ

CConsole.h66 行目に定義があります。

参照元 LibCommon::CConsoleMenu::ExecSubThread().

#define ConsoleStopInput ( )    ConsoleInstance().StopInput()

入力中止要求マクロ

CConsole.h67 行目に定義があります。

参照元 LibCommon::CConsoleMenu::StopMenu().