| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

# CommonAuditor.cpp

Go to the documentation of this file.

    00001 #include "CommonAuditor.h"
    00002
    00003 CommonAuditor::CommonAuditor(const std::string& name, ISvcLocator *svcloc): Auditor(name, svcloc) {
    00004   declareProperty("EventTypes", m_types,
    00005                   "List of event types to audit ([]=all, ['none']=none)");
    00006   declareProperty("CustomEventTypes", m_customTypes,
    00007                   "OBSOLETE, use EventTypes instead")->declareUpdateHandler(&CommonAuditor::i_updateCustomTypes, this);
    00008 }
    00009
    00010 CommonAuditor::~CommonAuditor() {}
    00011
    00012 void CommonAuditor::i_updateCustomTypes(Property &) {
    00013   MsgStream log(msgSvc(), name());
    00014   log << MSG::WARNING << "Property CustomEventTypes is deprecated, use EventTypes instead" << endmsg;
    00015   m_types.setValue(m_customTypes.value());
    00016 }
    00017
    00018 void CommonAuditor::before(StandardEventType evt, INamedInterface* caller)
    00019 {
    00020   if (caller) before(toStr(evt), caller->name());
    00021 }
    00022 void CommonAuditor::before(StandardEventType evt, const std::string& caller)
    00023 {
    00024   before(toStr(evt), caller);
    00025 }
    00026 void CommonAuditor::before(CustomEventTypeRef evt, INamedInterface* caller)
    00027 {
    00028   if (caller) before(evt, caller->name());
    00029 }
    00030 void CommonAuditor::before(CustomEventTypeRef evt, const std::string& caller)
    00031 {
    00032   if (i_auditEventType(evt)) i_before(evt, caller);
    00033 }
    00034
    00035 void CommonAuditor::after(StandardEventType evt, INamedInterface* caller, const StatusCode& sc)
    00036 {
    00037   if (caller) after(toStr(evt), caller->name(), sc);
    00038 }
    00039 void CommonAuditor::after(StandardEventType evt, const std::string& caller, const StatusCode& sc)
    00040 {
    00041   after(toStr(evt), caller, sc);
    00042 }
    00043 void CommonAuditor::after(CustomEventTypeRef evt, INamedInterface* caller, const StatusCode& sc)
    00044 {
    00045   if (caller) after(evt, caller->name(), sc);
    00046 }
    00047 void CommonAuditor::after(CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc)
    00048 {
    00049   if (i_auditEventType(evt)) i_after(evt, caller, sc);
    00050 }

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines