SourceForge.jp

クラス dkutil::scoped_current_directory

ディレクトリを一時チェンジするときに使います。 [詳細]

#include <dkutilFileSystem.h>

すべてのメンバ一覧

Public メソッド

 scoped_current_directory (const char *dir=NULL)
virtual ~scoped_current_directory ()
bool reset (const char *dir, bool bForce=false)
 ディレクトリを変更する。

bool undo ()
 ディレクトリを元に戻す

bool empty () const
const std::string & previous_directory () const


説明

ディレクトリを一時チェンジするときに使います。

カレントディレクトリを一時チェンジし、スコープアウトすると元に戻してくれます。


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

dkutil::scoped_current_directory::scoped_current_directory const char *  dir = NULL  )  [inline]
 

virtual dkutil::scoped_current_directory::~scoped_current_directory  )  [inline, virtual]
 


関数

bool dkutil::scoped_current_directory::empty  )  const [inline]
 

const std::string& dkutil::scoped_current_directory::previous_directory  )  const [inline]
 

bool dkutil::scoped_current_directory::reset const char *  dir,
bool  bForce = false
[inline]
 

ディレクトリを変更する。

bool dkutil::scoped_current_directory::undo  )  [inline]
 

ディレクトリを元に戻す


このクラスの説明は次のファイルから生成されました:
dkutil 1.02リリース前 d金魚専用マニュアルバージョンに対してSun Dec 28 21:23:13 2003に生成されました。 doxygen 1.3.5