TNB Library
Toggle main menu visibility
総合概要
諸情報
モジュール
名前空間
名前空間一覧
名前空間メンバ
全て
a
b
c
d
e
g
h
i
l
m
o
p
r
s
t
u
v
z
関数
a
b
c
d
e
g
h
i
l
m
o
p
r
s
t
u
v
z
型定義
b
c
e
i
列挙型
列挙値
クラス
クラス一覧
クラス階層
クラスメンバ
全て
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
関数
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
変数
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
型定義
c
d
e
i
p
t
列挙型
e
列挙値
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
関連関数
ファイル
ファイル一覧
ファイルメンバ
全て
_
c
e
i
l
m
p
r
s
t
列挙型
列挙値
i
r
マクロ定義
C:
Home
Private
TnbLibrary
TnbInc
TnbDirectoryLocker.h
[詳解]
1
#pragma once
11
#include "
TnbFileLocker.h
"
12
#include "
TnbSimpleVector.h
"
13
14
15
16
//TNB Library
17
namespace
TNB
18
{
19
20
21
34
class
CDirectoryLocker
:
CCopyImpossible
35
{
36
typedef
CPointerHandleT<CFileLocker>
CFileLockerHandle
;
37
CSimpleVectorT<CFileLockerHandle>
m_v;
38
39
public
:
40
42
CDirectoryLocker
(
void
)
43
{
44
}
45
47
~CDirectoryLocker
(
void
)
48
{
49
Unlock
();
50
}
51
58
bool
Lock
(LPCTSTR lpszDir)
59
{
60
Unlock
();
61
62
63
64
65
}
66
71
void
Unlock
(
void
)
72
{
73
m_v.
RemoveAll
();
74
}
75
};
76
77
78
79
};
// TNB
TnbFileLocker.h
ファイルロック関係のヘッダ
TnbSimpleVector.h
簡易配列型情報管理関係のヘッダ
TNB::CCopyImpossible
[ETC] コピー不可能スーパークラス.
Definition:
TnbDef.h:599
TNB::CDirectoryLocker
フォルダロック管理クラス
Definition:
TnbDirectoryLocker.h:35
TNB::CDirectoryLocker::Lock
bool Lock(LPCTSTR lpszDir)
[排他] ロック
Definition:
TnbDirectoryLocker.h:58
TNB::CDirectoryLocker::Unlock
void Unlock(void)
[排他] アンロック
Definition:
TnbDirectoryLocker.h:71
TNB::CDirectoryLocker::~CDirectoryLocker
~CDirectoryLocker(void)
デストラクタ
Definition:
TnbDirectoryLocker.h:47
TNB::CDirectoryLocker::CDirectoryLocker
CDirectoryLocker(void)
コンストラクタ
Definition:
TnbDirectoryLocker.h:42
TNB::CPointerHandleT
ポインタ型ハンドルテンプレート
Definition:
TnbPointerHandle.h:348
TNB::CSimpleVectorT
簡易配列型情報管理テンプレート
Definition:
TnbSimpleVector.h:56
TNB::CSimpleVectorT::RemoveAll
void RemoveAll(void)
[削除] 空化
Definition:
TnbSimpleVector.h:303
TNB
TNB Library
Definition:
TnbDoxyTitle.txt:2
2023年02月05日(日) 07時21分31秒作成 - TNB Library / 構成:
1.9.3