#include <SystemLogger.h>
Public 型 | |
typedef _CharT | char_type |
typedef _Traits | traits_type |
typedef std::basic_streambuf< char_type, traits_type > | __streambuf_type |
typedef std::basic_filebuf< char_type, traits_type > | __filebuf_type |
Public メソッド | |
basic_medlogbuf () | |
basic_medlogbuf クラスコンストラクタ | |
basic_medlogbuf (__filebuf_type &filebuf) | |
virtual | ~basic_medlogbuf () |
basic_medlogbuf クラスデストラクタ | |
void | setBuffer (__filebuf_type &filebuf) |
void | setDateFmt (char *fmt) |
ヘッダに付加する日時フォーマットを指定する。 | |
void | setDateFmt (const std::string &fmt) |
ヘッダに付加する日時フォーマットを指定する。 | |
std::string | getFmtDate () |
フォーマットされた現在日時文字列を取得する。 | |
void | setSuffix (char *suffix) |
ヘッダの日時の後に付加する文字列を設定する。 | |
void | setSuffix (const std::string &suffix) |
ヘッダの日時の後に付加する文字列を設定する。 | |
std::string | getSuffix () |
ヘッダの日時の後に付加する文字列を取得する。 | |
Protected メソッド | |
virtual int | sync () |
バッファ同期 |
basic_streambuf ライクなログバッファクラス。basic_filebuf への仲介をする。 stream から受け取った文字列にヘッダなどを付加し basic_filebuf へ渡す。
|
|
|
|
|
|
|
|
|
basic_medlogbuf クラスコンストラクタ 引数に basic_filebuf オブジェクトを受け取る。 受け取った filebuf に対してヘッダ等を付加した文字列を渡す。 |
|
|
|
basic_medlogbuf クラスデストラクタ デストラクタ。 |
|
フォーマットされた現在日時文字列を取得する。
|
|
ヘッダの日時の後に付加する文字列を取得する。
|
|
|
|
ヘッダに付加する日時フォーマットを指定する。
|
|
ヘッダに付加する日時フォーマットを指定する。 フォーマット指定文字列は以下のとおり。 a abbreviated weekday name A full weekday name b abbreviated month name B full month name c the standard date and time string d day of the month, as a number (1-31) H hour, 24 hour format (0-23) I hour, 12 hour format (1-12) j day of the year, as a number (1-366) m month as a number (1-12). Note: some versions of Microsoft Visual C++ may use values that range from 0-11. M minute as a number (0-59) p locale's equivalent of AM or PM S second as a number (0-59) U week of the year, sunday as the first day w weekday as a decimal (0-6, sunday=0) W week of the year, monday as the first day x standard date string X standard time string y year in decimal, without the century (0-99) Y year in decimal, with the century Z time zone name % a percent sign |
|
ヘッダの日時の後に付加する文字列を設定する。
|
|
ヘッダの日時の後に付加する文字列を設定する。
|
|
バッファ同期 バッファがフラッシュされた際に呼ばれる同期関数。 |