]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTModuleAgent.h
Minor cleanup of code.
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTModuleAgent.h
index 8a2255ff208d429b94957158dd6247e2c0be6e68..1d89054e0ff8832e9e6ef6551467d0b4b610f4e2 100644 (file)
@@ -117,8 +117,8 @@ class AliHLTModuleAgent : public TObject, public AliHLTLogging {
   /**
    * Get module id.
    * The module id is a string specifying the detector, or module. The
-   * library must follow the naming scheme \it libAliHLTModule.so, e.g.
-   * \it libAliHLTTPC.so if the module is 'TPC'
+   * library must follow the naming scheme \em libAliHLTModule.so, e.g.
+   * \em libAliHLTTPC.so if the module is 'TPC'
    */
   const char* GetModuleId() const;
 
@@ -269,15 +269,23 @@ class AliHLTModuleAgent : public TObject, public AliHLTLogging {
 
     ~AliHLTOUTHandlerDesc() {}
 
+    bool operator==(const AliHLTOUTHandlerType handlerType) const {
+      return fHType==handlerType;
+    }
+    operator AliHLTOUTHandlerType() {return fHType;}
+    operator AliHLTComponentDataType() {return fDt;}
+
   private:
     /** type of the handler */
-    AliHLTOUTHandlerType    fHType;
+    AliHLTOUTHandlerType    fHType;                          //!transient
     /** data type treated by the handler */
-    AliHLTComponentDataType fDt;
+    AliHLTComponentDataType fDt;                             //!transient
     /** class or chain name */
-    TString                 fModule;
+    TString                 fModule;                         //!transient
   };
 
+  static const AliHLTOUTHandlerDesc fgkVoidHandlerDesc; //! initializer
+
   /**
    * Get handler description for a data block.
    * @param dt        [in] data type of the block
@@ -287,7 +295,7 @@ class AliHLTModuleAgent : public TObject, public AliHLTLogging {
    */
   virtual int GetHandlerDescription(AliHLTComponentDataType dt,
                                    AliHLTUInt32_t spec,
-                                   AliHLTOUTHandlerDesc& pDesc) const;
+                                   AliHLTOUTHandlerDesc& desc) const;
 
   /**
    * Get handler for a data block of the HLTOUT data.
@@ -367,16 +375,16 @@ class AliHLTModuleAgent : public TObject, public AliHLTLogging {
   static int Unregister(AliHLTModuleAgent* pAgent);
 
   /** the list of active agents */
-  static AliHLTModuleAgent* fAnchor;                               //! transient
+  static AliHLTModuleAgent* fgAnchor;                               //! transient
 
   /** next element in the list */
   AliHLTModuleAgent* fpNext;                                       //! transient
 
   /** the current object link (list position) */
-  static AliHLTModuleAgent* fCurrent;                              //! transient
+  static AliHLTModuleAgent* fgCurrent;                              //! transient
 
   /** number of agents */
-  static int fCount;                                               //! transient
+  static int fgCount;                                               //! transient
 
   /** instance of the active component handler */
   AliHLTComponentHandler* fpComponentHandler;                      //! transient