]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/SampleLib/AliHLTDummyComponent.cxx
- AliHLTFileWriter added
[u/mrichter/AliRoot.git] / HLT / SampleLib / AliHLTDummyComponent.cxx
index 8427789cf24b327d722d0dc0bc30b76e57c37f07..140d134e16c689ccb90b0c74eaffd4f2598f9309 100644 (file)
@@ -52,15 +52,22 @@ const char* AliHLTDummyComponent::GetComponentID()
 
 void AliHLTDummyComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
     {
-    list.clear(); // We do not have any requirements for our input data type(s).
+      /* in order to be backward compatible we have to keep the old code, at
+       * least for a while. Remember to use the new const kAliHLTVoidDataType
+       * if you are using a more recent AliRoot version (from Jan 07)
+       list.push_back(kAliHLTAnyDataType); // We do not have any requirements for our input data type(s).
+      */
+       list.push_back((AliHLTComponentDataType){ sizeof(AliHLTComponentDataType), {'*','*','*','*','*','*','*','\0'},{'*','*','*','\0'}});
     }
 
 AliHLTComponentDataType AliHLTDummyComponent::GetOutputDataType()
     {
-      AliHLTComponentDataType dt;
-      SetDataType(dt, "DUMMY", "DUMY");
-      cout << "SetDataType: size " << dt.fStructSize << endl;
-      return dt;
+      /* in order to be backward compatible we have to keep the old code, at
+       * least for a while. Remember to use the new const kAliHLTVoidDataType
+       * if you are using a more recent AliRoot version (from Jan 07)
+      return kAliHLTVoidDataType;
+      */
+      return (AliHLTComponentDataType){ sizeof(AliHLTComponentDataType), {'\0','\0','\0','0','\0','\0','\0','\0'},{'\0','\0','\0','\0'}};
     }
 
 void AliHLTDummyComponent::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )