All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FileReadTool.h
Go to the documentation of this file.
1 // $Id: FileReadTool.h,v 1.2 2008/06/12 15:23:03 marcocle Exp $
2 #ifndef _FILEREADTOOL_H
3 #define _FILEREADTOOL_H
4 
6 #include "GaudiKernel/AlgTool.h"
7 
17 class FileReadTool : public extends1<AlgTool, IFileAccess> {
18 
19 public:
20 
22  FileReadTool( const std::string& type,
23  const std::string& name,
24  const IInterface* parent);
25 
26  virtual ~FileReadTool();
27 
28  //virtual StatusCode initialize();
29  //virtual StatusCode finalize();
30 
31  virtual std::auto_ptr<std::istream> open(const std::string &url);
32 
34  virtual const std::vector<std::string> &protocols() const;
35 
36 private:
37 
39  std::vector<std::string> m_protocols;
40 
41 };
42 
43 #endif // _FILEREADTOOL_H
virtual const std::string & type() const
Retrieve type (concrete class) of the sub-algtool.
Definition: AlgTool.cpp:58
Basic implementation of the IFileAccess interface.
Definition: FileReadTool.h:17
std::vector< std::string > m_protocols
Vector of supported protocols.
Definition: FileReadTool.h:39
virtual std::auto_ptr< std::istream > open(const std::string &url)
Find the URL and returns an auto_ptr to an input stream interface of an object that can be used to re...
virtual const std::vector< std::string > & protocols() const
Protocols supported by the instance.
virtual ~FileReadTool()
Definition of the basic interface.
Definition: IInterface.h:160
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:7
virtual const IInterface * parent() const
Retrieve parent of the sub-algtool.
Definition: AlgTool.cpp:65
virtual const std::string & name() const
Retrieve full identifying name of the concrete tool object.
Definition: AlgTool.cpp:51