22 using namespace DD4hep;
23 using namespace DD4hep::Conditions;
37 : m_refCount(0), target(tar), dependencies(deps), callback(call)
46 : m_refCount(0), target(tar), callback(call)
54 : m_refCount(0), target(0), callback(0)
61 : m_refCount(0), target(c.target), dependencies(c.dependencies), callback(c.callback)
66 "++ Condition: %s. Dependencies may not be assigned or copied!",
79 "++ Condition: %s. Dependencies may not be assigned or copied!",
108 except(
"Dependency",
"++ Invalid object. No further source may be added!");
118 except(
"Dependency",
"++ Invalid object. Cannot access built objects!");
ConditionDependency & operator=(const ConditionDependency &c)
Assignment operator.
static void decrement(T *)
Decrement count according to type information.
int except(const std::string &src, const std::string &fmt,...)
Calls the display action with ERROR and throws an std::runtime_error exception.
Condition dependency definition.
Key definition to optimize ans simplyfy the access to conditions entities.
void releasePtr(T &p)
Helper to delete objects from heap and reset the pointer. Saves many many lines of code...
ConditionUpdateCall * callback
Reference to the update callback. No auto pointer. callback may be shared.
ConditionDependency()
Default constructor.
ConditionDependency * release()
Release the created dependency and take ownership.
void add(const ConditionKey &source)
Add a new dependency.
DetElement detector
Reference to the target's detector element.
Dependencies dependencies
Dependency keys this condition depends on.
static void increment(T *)
Increment count according to type information.
std::string name
String representation of the key object.
ConditionUpdateCall * addRef()
Add use count to the object.
std::vector< ConditionKey > Dependencies
Defintion of the depencency container.
Handle class describing a detector element.
virtual ~ConditionDependency()
Default destructor.
virtual ~ConditionResolver()
Standard destructor.
virtual ~ConditionUpdateCall()
Standard destructor.
ConditionKey target
Key to the condition to be updated.
DependencyBuilder(const ConditionKey &target, ConditionUpdateCall *call)
Initializing constructor.
virtual ~DependencyBuilder()
Default destructor.
ConditionDependency * m_dependency
The created dependency.