]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTDomainEntry.h
Update master to aliroot
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTDomainEntry.h
index 1ded44a272d2ac5ff15238e945466346c8bc5c9a..851740d462039b4a9a34d3d000d99d1a52c49334 100644 (file)
@@ -1,5 +1,5 @@
 //-*- Mode: C++ -*-
-// $Id:$
+// $Id$
 #ifndef ALIHLTDOMAINENTRY_H
 #define ALIHLTDOMAINENTRY_H
 /* This file is property of and copyright by the ALICE HLT Project        *
@@ -205,6 +205,7 @@ class AliHLTDomainEntry : public TObject
    * \return  true if the domain entries are identical or if they overlap (match)
    *    due to wild card values. False is returned if there is absolutely no
    *    overlap between this and the right hand side domain entries.
+   * \note No comparison is done for the exclude flag.
    */
   bool operator == (const AliHLTDomainEntry& rhs) const
   {
@@ -217,6 +218,7 @@ class AliHLTDomainEntry : public TObject
    * \return  true if the domain entries do not overlap (match) in any way, also
    *    after considering any wild card values. False is returned if the entries
    *    are identical or if they overlap due to wild card values.
+   * \note No comparison is done for the exclude flag.
    */
   bool operator != (const AliHLTDomainEntry& rhs) const
   {
@@ -294,8 +296,8 @@ class AliHLTDomainEntry : public TObject
    * If we consider the possibility of wild card characters, then the domain entry
    * can be thought of as a set of possible data block entries. This operator
    * therefore effectively implements the set intersection.
-   * \param rhs <i>[in]</i> The domain entry to compare to.
-   * \param result <i>[out]</i>  The resulting intersect is written into this
+   * \param [in]  rhs     The domain entry to compare to.
+   * \param [out] result  The resulting intersect is written into this
    *    variable if this method returns true. The contents is not modified if
    *    there is no intersect and this method returns false.
    * \return true is returned if there is a intersect between the domain entries
@@ -324,7 +326,14 @@ class AliHLTDomainEntry : public TObject
    * \returns  A string in the format \<type\>:\<origin\>:\<specification\>
    */
   TString AsString() const;
-  
+
+  /**
+   * Converts the three parameters into a 32 byte buffer
+   * As the PubSub expects the data type id and origin in reverse byte order
+   * those two are swapped. 
+   */
+  int AsBinary(AliHLTUInt32_t buffer[4]) const;
+
  private:
   
   Bool_t fExclude;  /// Indicates if the domain entry is exclusive, indicating data blocks that should not be readout.