Teamcenter C++ API Reference
2312
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
fclasses
AcquireLock.hxx
Go to the documentation of this file.
1
// ==================================================
2
// Copyright 2013.
3
// Siemens Product Lifecycle Management Software Inc.
4
// All Rights Reserved.
5
// ==================================================
6
7
#ifndef FCLASSES_ACQUIRELOCK_HXX
8
#define FCLASSES_ACQUIRELOCK_HXX
9
16
#include <unidefs.h>
17
18
#include <fclasses/libfclasses_exports.h>
19
namespace
Teamcenter
20
{
48
class
FCLASSES_API
AcquireLock
49
{
50
public
:
55
AcquireLock
();
56
60
AcquireLock
(
61
tag_t
object
62
);
63
67
void
lock(
68
tag_t
object
69
);
70
74
virtual
void
unlock();
75
80
void
forget();
81
86
virtual
~
AcquireLock
();
87
91
bool
isLocked()
const
;
92
96
bool
isLockedByMe()
const
;
97
98
99
private
:
103
AcquireLock
(
const
AcquireLock
& other );
104
108
AcquireLock
& operator=(
const
AcquireLock
& other );
109
110
protected
:
111
113
tag_t
m_lockedObj
;
114
116
bool
m_bLockedPrior
;
117
};
118
}
119
#include <fclasses/libfclasses_undef.h>
120
#endif