ATLAS Offline Software
Loading...
Searching...
No Matches
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
31namespace 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:
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
OutputStream(const OutputStream &that)
effects: standard copy constructor guarantee: strong failures: out of memory II
std::string m_label
description: members directly corresponding to accessors
OutputStream & operator=(OutputStream that)
effects: standard assignment operator guarantee: strong failures: out of memory II
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
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: !...
SH::MetaObject * options()
description: the list of options to the job guarantee: no-fail postcondition: result !...
SH::MetaObject m_options
void label(const std::string &val_label)
OutputStream()
effects: standard default constructor guarantee: strong failures: low level errors I
static const std::string optContainerSuffix
void output(SH::DiskOutput *output_swallow)
void swap(OutputStream &that)
effects: standard swap function guarantee: no-fail
const SH::MetaObject * options() const
~OutputStream()
effects: standard destructor guarantee: no-fail
static const std::string optType
SH::DiskOutput * m_output
ClassDef(OutputStream, 2)
const SH::DiskOutput * output() const
description: the output disk, if we don't use the default one.
static const std::string optMergeCmd
const std::string & label() const
description: the label for this output dataset.
OutputStream(const std::string &val_label)
effects: create a named output dataset guarantee: strong failures: low level errors II requires: !...
a class/interface representing an output location for files
Definition DiskOutput.h:46
A class that manages meta-data to be associated with an object.
Definition MetaObject.h:56
This module defines the arguments passed from the BATCH driver to the BATCH worker.