1 #ifndef GAUDIUTILS_IIODATAMANAGER_H
2 #define GAUDIUTILS_IIODATAMANAGER_H
45 : m_name(nam), m_owner(own) {}
49 const std::string&
name()
const {
return m_name; }
51 void setFID(
const std::string& fid) { m_fid = fid; }
53 const std::string&
fid()
const {
return m_fid; }
55 const std::string&
pfn()
const {
return m_pfn; }
57 void setPFN(
const std::string& fn) { m_pfn = fn; }
63 int age()
const {
return m_age; }
73 virtual bool isConnected()
const = 0;
75 virtual StatusCode read(
void*
const data,
size_t len) = 0;
77 virtual StatusCode write(
const void* data,
int len) = 0;
79 virtual long long int seek(
long long int where,
int origin) = 0;
106 virtual Connection* connection(
const std::string& dsn)
const = 0;
108 virtual Connections connections(
const IInterface* owner)
const = 0;
114 virtual long long int seek(
IDataConnection* con,
long long int where,
int origin) = 0;
117 #endif // GAUDIUTILS_IIODATAMANAGER_H
int age() const
Access age counter.
const IInterface * m_owner
Owner pointer.
const std::string & fid() const
Access file id.
std::string m_name
Connection name/identifier.
IoType
I/O Connection types.
IoStatus
Status Code on bad file connection.
std::string m_fid
File ID of the connection.
std::vector< Connection * > Connections
Connection::IoType IoType
const std::string & pfn() const
Access physical file name.
std::string m_pfn
Physical file name of the connection.
const std::string & name() const
Connection name.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
#define DeclareInterfaceID(name, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
IDataConnection Connection
Connection type definition.
void setPFN(const std::string &fn)
Set physical file name.
virtual ~IDataConnection()
Standard destructor.
const IInterface * owner() const
Owner instance.
ABC describing basic data connection.
IDataConnection(const IInterface *own, const std::string &nam)
Standard constructor.
void setFID(const std::string &fid)
Set file ID.
void resetAge()
Reset age.
This is a number of static methods for bootstrapping the Gaudi framework.
void ageFile()
Increase age of I/O source.