00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __OP_AutoLockInputs__
00019 #define __OP_AutoLockInputs__
00020
00021 #include "OP_API.h"
00022 #include "OP_Node.h"
00023
00024 class OP_API OP_AutoLockInputs
00025 {
00026 public:
00027 OP_AutoLockInputs();
00028 ~OP_AutoLockInputs();
00029
00030 OP_ERROR lock(OP_Node &node, OP_Context &context);
00031
00032 OP_Node *getLockedNode() const
00033 { return myNode; }
00034 bool getLockedState() const
00035 { return myLocked; }
00036
00037 private:
00038 void unlock();
00039
00040 OP_Node *myNode;
00041 bool myLocked;
00042 };
00043
00044 #endif