メインページ | ネームスペース一覧 | クラス階層 | 構成 | ファイル一覧 | ネームスペースメンバ | 構成メンバ | ファイルメンバ

クラス テンプレートRTM::basic_medlogbuf< _CharT, _Traits >

仲介ロガーバッファクラス. [詳細]

#include <RtcSystemLogger.h>

すべてのメンバ一覧

Public 型

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 (std::string fmt)
 ヘッダに付加する日時フォーマットを指定する。

std::string getFmtDate ()
 フォーマットされた現在日時文字列を取得する。

void setSuffix (char *suffix)
 ヘッダの日時の後に付加する文字列を設定する。

void setSuffix (std::string suffix)
 ヘッダの日時の後に付加する文字列を設定する。

std::string getSuffix ()
 ヘッダの日時の後に付加する文字列を取得する。


Protected メソッド

virtual int sync ()
 バッファ同期


説明

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
class RTM::basic_medlogbuf< _CharT, _Traits >

仲介ロガーバッファクラス.

basic_streambuf ライクなログバッファクラス。basic_filebuf への仲介をする。 stream から受け取った文字列にヘッダなどを付加し basic_filebuf へ渡す。


型定義

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
typedef std::basic_filebuf<char_type, traits_type> RTM::basic_medlogbuf< _CharT, _Traits >::__filebuf_type
 

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
typedef std::basic_streambuf<char_type, traits_type> RTM::basic_medlogbuf< _CharT, _Traits >::__streambuf_type
 


コンストラクタとデストラクタ

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
RTM::basic_medlogbuf< _CharT, _Traits >::basic_medlogbuf  )  [inline]
 

basic_medlogbuf クラスコンストラクタ

引数に basic_filebuf オブジェクトを受け取る。 受け取った filebuf に対してヘッダ等を付加した文字列を渡す。

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
RTM::basic_medlogbuf< _CharT, _Traits >::basic_medlogbuf __filebuf_type filebuf  )  [inline]
 

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
virtual RTM::basic_medlogbuf< _CharT, _Traits >::~basic_medlogbuf  )  [inline, virtual]
 

basic_medlogbuf クラスデストラクタ

デストラクタ。


関数

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
std::string RTM::basic_medlogbuf< _CharT, _Traits >::getFmtDate  )  [inline]
 

フォーマットされた現在日時文字列を取得する。

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
std::string RTM::basic_medlogbuf< _CharT, _Traits >::getSuffix  )  [inline]
 

ヘッダの日時の後に付加する文字列を取得する。

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
void RTM::basic_medlogbuf< _CharT, _Traits >::setBuffer __filebuf_type filebuf  )  [inline]
 

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
void RTM::basic_medlogbuf< _CharT, _Traits >::setDateFmt std::string  fmt  )  [inline]
 

ヘッダに付加する日時フォーマットを指定する。

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
void RTM::basic_medlogbuf< _CharT, _Traits >::setDateFmt char *  fmt  )  [inline]
 

ヘッダに付加する日時フォーマットを指定する。

フォーマット指定文字列は以下のとおり。 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

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
void RTM::basic_medlogbuf< _CharT, _Traits >::setSuffix std::string  suffix  )  [inline]
 

ヘッダの日時の後に付加する文字列を設定する。

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
void RTM::basic_medlogbuf< _CharT, _Traits >::setSuffix char *  suffix  )  [inline]
 

ヘッダの日時の後に付加する文字列を設定する。

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
virtual int RTM::basic_medlogbuf< _CharT, _Traits >::sync  )  [inline, protected, virtual]
 

バッファ同期

バッファがフラッシュされた際に呼ばれる同期関数。


このクラスの説明は次のファイルから生成されました:
OpenRTMに対してMon May 23 03:13:44 2005に生成されました。 doxygen 1.3.6