#include <logCtrl.h>
Public Member Functions | |
| const char * | getLineBuffer (void) |
| 1行読み出し | |
| LogCtrl (const char *fname, bool write) | |
| ファイル名、モード指定のコンストラクタ | |
| void | lock (void) |
| ログ資源のロック | |
| void | unlock (void) |
| ログ資源のアンロック | |
| void | flush (void) |
| ログ資源へのフラッシュ | |
| void | writeTag (const char *module, const char *command, unsigned long ticks) |
| タグ情報の書き込み | |
| void | writeTagEnd (void) |
| 書き込み中のタグを閉じる | |
| unsigned long | readTag (const char *module, const char *command) |
| タグの読み出し | |
Public Attributes | |
| FILE * | fd |
Definition at line 24 of file logCtrl.h.
| LogCtrl::LogCtrl | ( | const char * | fname, | |
| bool | write | |||
| ) |
ファイル名、モード指定のコンストラクタ
| fname | [i] ファイル名 | |
| write | [i] 書き込みモードの場合に true |
Definition at line 11 of file logCtrl.cpp.
References fd, lock(), and unlock().
Referenced by vmonitor::setMonitorMode().
| const char * LogCtrl::getLineBuffer | ( | void | ) |
1行読み出し
Definition at line 101 of file logCtrl.cpp.
Referenced by mURGCtrl::getCaptureTimes().
| void LogCtrl::writeTag | ( | const char * | module, | |
| const char * | command, | |||
| unsigned long | ticks | |||
| ) |
タグ情報の書き込み
| module | [i] モジュール名 | |
| command | [i] コマンド名 | |
| ticks | [i] 記録タイミング |
Definition at line 74 of file logCtrl.cpp.
References fd.
Referenced by mURGCtrl::getCaptureTimes(), and MonitorTask::waitOnlyCommand().
| unsigned long LogCtrl::readTag | ( | const char * | module, | |
| const char * | command | |||
| ) |
タグの読み出し
| module | [i] モジュール名 | |
| command | [i] コマンド名 |
Definition at line 138 of file logCtrl.cpp.
Referenced by mURGCtrl::getCaptureTimes(), and MonitorTask::waitOnlyCommand().
| FILE* LogCtrl::fd |
ファイルディスクリプタ
Definition at line 39 of file logCtrl.h.
Referenced by flush(), mURGCtrl::getCaptureTimes(), LogCtrl(), writeTag(), and writeTagEnd().
1.5.7.1