ATLAS Offline Software
Loading...
Searching...
No Matches
MyLockableDataObj.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6
7
8#ifndef ATHEXSTOREGATEEXAMPLE_MYLOCKABLEDATAOBJ
9#define ATHEXSTOREGATEEXAMPLE_MYLOCKABLEDATAOBJ
10
11
12#include "SGCore/ILockable.h"
13
14
19{
20public:
22 virtual void lock() { m_locked = true; }
23
25};
26
29
30
31#endif // not ATHEXSTOREGATEEXAMPLE_MYLOCKABLEDATAOBJ
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Interface to allow an object to lock itself when made const in SG.
Definition ILockable.h:32
To test SG lock functionality.
virtual void lock()
Lock this object.