]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTConfiguration.h
- AliHLTReconstructor: added helper functions to run HLTOUT processing stand alone
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTConfiguration.h
index 5a0d4e459f4b26ff82a1072bd7e5bb0adc3c7f09..6bf284b48d2508f04ea96d56be1eff71073815c5 100644 (file)
@@ -67,9 +67,12 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    * @param component  component id
    * @param sources    blank separated list of source configuration ids
    * @param arguments  argument string passed to the component at initialization
+   * @param bufsize    size of the output buffer in byte, the string can contain a
+   *                   number prepended by a unit, e.g. 1M, allowed units 'k' and 'M'
    */
   AliHLTConfiguration(const char* id, const char* component,
-                     const char* sources, const char* arguments);
+                     const char* sources, const char* arguments,
+                     const char* bufsize=NULL);
   /** copy constructor */
   AliHLTConfiguration(const AliHLTConfiguration& src);
   /** assignment op */
@@ -177,6 +180,11 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    */
   int GetArguments(const char*** pArgv);
 
+  /**
+   * Get output buffer size.
+   * @return size in byte or -1 if not specified
+   */
+  int GetOutputBufferSize() const {return fBufferSize;}
  protected:
   
 
@@ -194,7 +202,12 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
    * @param arg       pointer to argument string
    * @param argList   target to receive the argument list
    */
-  int InterpreteString(const char* arg, vector<char*>& argList);
+  int InterpreteString(const char* arg, vector<char*>& argList) const;
+
+  /**
+   * Convert buffer size string to number
+   */
+  int ConvertSizeString(const char* strSize) const;
 
   /** id of this configuration */
   TString fID;                                                     // see above
@@ -222,6 +235,9 @@ class AliHLTConfiguration : public TObject, public AliHLTLogging {
   /** argument array */
   char** fArgv;                                                    // see above
 
+  /** size of the output buffer */
+  int fBufferSize;                                                 // see above
+
   /** the instance of the global configuration handler */
   static AliHLTConfigurationHandler* fgConfigurationHandler;       //! transient