The Gaudi Framework  v29r0 (ff2e7097)
FileReadTool.h
Go to the documentation of this file.
1 #ifndef _FILEREADTOOL_H
2 #define _FILEREADTOOL_H
3 
4 #include "GaudiKernel/AlgTool.h"
6 
16 class FileReadTool : public extends<AlgTool, IFileAccess>
17 {
18 
19 public:
21  FileReadTool( const std::string& type, const std::string& name, const IInterface* parent );
22 
23  ~FileReadTool() override = default;
24 
25  std::unique_ptr<std::istream> open( const std::string& url ) override;
26 
28  const std::vector<std::string>& protocols() const override;
29 };
30 
31 #endif // _FILEREADTOOL_H
~FileReadTool() override=default
Basic implementation of the IFileAccess interface.
Definition: FileReadTool.h:16
STL class.
Definition of the basic interface.
Definition: IInterface.h:277
const std::string & name() const override
Retrieve full identifying name of the concrete tool object.
Definition: AlgTool.cpp:63
STL class.
const std::vector< std::string > & protocols() const override
Protocols supported by the instance.
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
FileReadTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: FileReadTool.cpp:6
const IInterface * parent() const override
Retrieve parent of the sub-algtool.
Definition: AlgTool.cpp:77
std::unique_ptr< std::istream > open(const std::string &url) override
const std::string & type() const override
Retrieve type (concrete class) of the sub-algtool.
Definition: AlgTool.cpp:70