36 msg << MSG::ERROR <<
"Null pointer to IAuditorSvc !!" <<
endmsg;
37 return StatusCode::FAILURE;
40 if ( 0 != audSvc->getAuditor( audName ) ) {
42 << audName <<
"]... good."
44 return StatusCode::SUCCESS;
47 const std::string
propName =
"Auditors";
48 SmartIF<IProperty> audSvcProp(audSvc);
49 if ( 0 == audSvcProp ) {
51 <<
"Could not dyn-cast IAuditorSvc to an IProperty !!" <<
endmsg;
52 return StatusCode::FAILURE;
55 StringArrayProperty audNames;
56 audNames.assign( audSvcProp->getProperty(
propName) );
57 std::vector<std::string> updatedNames( audNames.value() );
58 updatedNames.push_back( audName );
59 audNames.set( updatedNames );
61 if ( !audSvcProp->setProperty( audNames ).isSuccess() ) {
63 <<
"Could not add [" << audName <<
"] to the list of auditors of"
68 return StatusCode::FAILURE;
72 IAuditor* aud = audSvc->getAuditor( audName );
75 <<
"Failed to make AuditorSvc instantiating ["
78 return StatusCode::FAILURE;
82 return StatusCode::SUCCESS;