The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
Sequence.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12#include <Gaudi/Algorithm.h>
13
14#include <string>
15#include <vector>
16
17namespace Gaudi {
18 class GAUDI_API Sequence : public Algorithm {
19 public:
21
23 bool isSequence() const override final { return true; }
24
37 StatusCode createSubAlgorithm( const std::string& type, const std::string& name, Algorithm*& pSubAlg );
38
40 const std::vector<Algorithm*>* subAlgorithms() const;
41
43 std::vector<Algorithm*>* subAlgorithms();
44
48 StatusCode start() override;
49
55 StatusCode initialize() override;
56
62 StatusCode reinitialize() override;
63
68 StatusCode restart() override;
69
73 StatusCode stop() override;
74
79 StatusCode finalize() override;
80
81 void acceptDHVisitor( IDataHandleVisitor* ) const override;
82
83 private:
84 std::vector<Algorithm*> m_subAlgms;
85 };
86} // namespace Gaudi
#define GAUDI_API
Definition Kernel.h:49
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:87
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
bool isSequence() const override final
Are we a Sequence?
Definition Sequence.h:23
std::vector< Algorithm * > m_subAlgms
Sub algorithms.
Definition Sequence.h:84
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1