The Gaudi Framework  v29r0 (ff2e7097)
IIoComponentMgr.h
Go to the documentation of this file.
1 // IIoComponentMgr.h
3 // Header file for class IIoComponentMgr
4 // Author: S.Binet<binet@cern.ch>
6 #ifndef GAUDIKERNEL_IIOCOMPONENTMGR_H
7 #define GAUDIKERNEL_IIOCOMPONENTMGR_H 1
8 
12 // STL includes
13 #include <string>
14 
15 // GaudiKernel includes
17 #include "GaudiKernel/StatusCode.h"
18 
19 // forward declare
20 class IIoComponent;
21 
23 {
24 public:
26 
28  // Public enums:
30 public:
31  struct IoMode {
32  enum Type { READ = 0, WRITE, RW, INVALID };
33  };
34 
36  // Public methods:
38 public:
45  virtual StatusCode io_register( IIoComponent* iocomponent ) = 0;
46 
53  virtual StatusCode io_register( IIoComponent* iocomponent, IIoComponentMgr::IoMode::Type iomode,
54  const std::string& fname, const std::string& pfn = "" ) = 0;
55 
59  virtual StatusCode io_update( IIoComponent* iocomponent, const std::string& old_fname,
60  const std::string& new_fname ) = 0;
61 
65  virtual StatusCode io_update( IIoComponent* iocomponent, const std::string& work_dir ) = 0;
66 
67  // VT. new method
70  virtual StatusCode io_update_all( const std::string& work_dir ) = 0;
71 
74  virtual bool io_hasitem( IIoComponent* iocomponent ) const = 0;
75 
79  virtual bool io_contains( IIoComponent* iocomponent, const std::string& fname ) const = 0;
80 
84  virtual StatusCode io_retrieve( IIoComponent* iocomponent, std::string& fname ) = 0;
85 
90  virtual StatusCode io_reinitialize() = 0;
91 
96  virtual StatusCode io_finalize() = 0;
97 };
98 
99 #endif //> !GAUDIKERNEL_IIOCOMPONENTMGR_H
DeclareInterfaceID(INamedInterface, 1, 0)
InterfaceID.
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
IInterface compliant class extending IInterface with the name() method.
#define GAUDI_API
Definition: Kernel.h:110