From: richterm Date: Sat, 9 Feb 2008 09:41:43 +0000 (+0000) Subject: minor change, making helper methods globally available X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=8b97f4f18ee8c15672b047395061a8bdecf925fb;hp=7659c5b2809eb02097b603173dffa7b025321666;p=u%2Fmrichter%2FAliRoot.git minor change, making helper methods globally available --- diff --git a/HLT/BASE/AliHLTComponent.cxx b/HLT/BASE/AliHLTComponent.cxx index d705bc263cb..8f1b4abbb7f 100644 --- a/HLT/BASE/AliHLTComponent.cxx +++ b/HLT/BASE/AliHLTComponent.cxx @@ -427,25 +427,26 @@ int AliHLTComponent::FindMatchingDataTypes(AliHLTComponent* pConsumer, AliHLTCom return iResult; } -void AliHLTComponent::PrintDataTypeContent(AliHLTComponentDataType& dt, const char* format) const +void AliHLTComponent::PrintDataTypeContent(AliHLTComponentDataType& dt, const char* format) { // see header file for function documentation - const char* fmt="publisher \'%s\'"; + const char* fmt="\'%s\'"; if (format) fmt=format; - HLTMessage(fmt, (DataType2Text(dt)).c_str()); - HLTMessage("%x %x %x %x %x %x %x %x : %x %x %x %x", - dt.fID[0], - dt.fID[1], - dt.fID[2], - dt.fID[3], - dt.fID[4], - dt.fID[5], - dt.fID[6], - dt.fID[7], - dt.fOrigin[0], - dt.fOrigin[1], - dt.fOrigin[2], - dt.fOrigin[3]); + AliHLTLogging::Message(NULL, kHLTLogNone, NULL , NULL, Form(fmt, (DataType2Text(dt)).c_str())); + AliHLTLogging::Message(NULL, kHLTLogNone, NULL , NULL, + Form("%x %x %x %x %x %x %x %x : %x %x %x %x", + dt.fID[0], + dt.fID[1], + dt.fID[2], + dt.fID[3], + dt.fID[4], + dt.fID[5], + dt.fID[6], + dt.fID[7], + dt.fOrigin[0], + dt.fOrigin[1], + dt.fOrigin[2], + dt.fOrigin[3])); } void AliHLTComponent::FillBlockData( AliHLTComponentBlockData& blockData ) diff --git a/HLT/BASE/AliHLTComponent.h b/HLT/BASE/AliHLTComponent.h index e03bcdb03f5..a279a4c1be3 100644 --- a/HLT/BASE/AliHLTComponent.h +++ b/HLT/BASE/AliHLTComponent.h @@ -446,7 +446,7 @@ class AliHLTComponent : public AliHLTLogging { /** * Helper function to print content of data type. */ - void PrintDataTypeContent(AliHLTComponentDataType& dt, const char* format=NULL) const; + static void PrintDataTypeContent(AliHLTComponentDataType& dt, const char* format=NULL); /** * helper function to initialize AliHLTComponentEventData structure @@ -458,7 +458,7 @@ class AliHLTComponent : public AliHLTLogging { * This is just a helper function to examine an @ref AliHLTComponentDataType * structur. */ - void PrintComponentDataTypeInfo(const AliHLTComponentDataType& dt); + static void PrintComponentDataTypeInfo(const AliHLTComponentDataType& dt); /** * Fill AliHLTComponentBlockData structure with default values.