ATLAS Offline Software
OutputStream.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EVENT_LOOP_OUTPUT_STREAM_HH
6 #define EVENT_LOOP_OUTPUT_STREAM_HH
7 
8 //
9 // Distributed under the Boost Software License, Version 1.0.
10 // (See accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
12 
13 // Please feel free to contact me (krumnack@iastate.edu) for bug
14 // reports, feature suggestions, praise and complaints.
15 
16 
21 
22 
23 
24 #include <EventLoop/Global.h>
25 
26 #include <vector>
27 #include <TObject.h>
30 
31 namespace EL
32 {
33  class OutputStream : public TObject
34  {
35  //
36  // public interface
37  //
38 
41  public:
42  void testInvariant () const;
43 
44 
48  public:
50 
51 
56  public:
57  OutputStream (const std::string& val_label);
58 
59 
64  public:
65  OutputStream (const std::string& val_label, const std::string& val_type);
66 
67 
71  public:
72  OutputStream (const OutputStream& that);
73 
74 
77  public:
79 
80 
84  public:
86 
87 
90  public:
91  void swap (OutputStream& that);
92 
93 
98  public:
99  const std::string& label () const;
100  void label (const std::string& val_label);
101 
102 
106  public:
108  const SH::MetaObject *options () const;
109 
110 
114  public:
115  const SH::DiskOutput *output() const;
116  void output (SH::DiskOutput *output_swallow);
117 
118 
119  public:
120  static const std::string optType;
121  static const std::string optMergeCmd;
122  static const std::string optContainerSuffix;
123 
124 
125  //
126  // private interface
127  //
128 
130  private:
131  std::string m_label;
132  private:
134  private:
136 
138  };
139 }
140 
141 #endif
EL::OutputStream::m_output
SH::DiskOutput * m_output
Definition: OutputStream.h:135
SH::MetaObject
A class that manages meta-data to be associated with an object.
Definition: MetaObject.h:56
EL::OutputStream::OutputStream
OutputStream(const std::string &val_label)
effects: create a named output dataset guarantee: strong failures: low level errors II requires: !...
EL::OutputStream
Definition: OutputStream.h:34
EL::OutputStream::m_label
std::string m_label
description: members directly corresponding to accessors
Definition: OutputStream.h:131
EL::OutputStream::label
const std::string & label() const
description: the label for this output dataset.
EL::OutputStream::options
const SH::MetaObject * options() const
EL::OutputStream::swap
void swap(OutputStream &that)
effects: standard swap function guarantee: no-fail
SampleHandler.h
EL::OutputStream::label
void label(const std::string &val_label)
EL::OutputStream::optMergeCmd
static const std::string optMergeCmd
Definition: OutputStream.h:121
EL::OutputStream::output
const SH::DiskOutput * output() const
description: the output disk, if we don't use the default one.
SH::DiskOutput
a class/interface representing an output location for files
Definition: DiskOutput.h:46
EL::OutputStream::output
void output(SH::DiskOutput *output_swallow)
MetaObject.h
EL::OutputStream::operator=
OutputStream & operator=(OutputStream that)
effects: standard assignment operator guarantee: strong failures: out of memory II
EL::OutputStream::m_options
SH::MetaObject m_options
Definition: OutputStream.h:133
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
EL::OutputStream::OutputStream
OutputStream(const OutputStream &that)
effects: standard copy constructor guarantee: strong failures: out of memory II
EL::OutputStream::testInvariant
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
EL::OutputStream::optType
static const std::string optType
Definition: OutputStream.h:120
EL::OutputStream::OutputStream
OutputStream()
effects: standard default constructor guarantee: strong failures: low level errors I
EL::OutputStream::~OutputStream
~OutputStream()
effects: standard destructor guarantee: no-fail
EL::OutputStream::OutputStream
OutputStream(const std::string &val_label, const std::string &val_type)
effects: create a named output dataset guarantee: strong failures: low level errors II requires: !...
EL::OutputStream::optContainerSuffix
static const std::string optContainerSuffix
Definition: OutputStream.h:122
EL::OutputStream::options
SH::MetaObject * options()
description: the list of options to the job guarantee: no-fail postcondition: result !...
EL::OutputStream::ClassDef
ClassDef(OutputStream, 2)
Global.h