1 #ifndef GAUDIUTILS_IIODATAMANAGER_H 2 #define GAUDIUTILS_IIODATAMANAGER_H 39 enum IoType {
READ = 1 << 1, UPDATE = 1 << 2,
CREATE = 1 << 3, RECREATE = ( 1 << 4 ) + ( 1 << 3 ) };
63 int age()
const {
return m_age; }
73 virtual bool isConnected()
const = 0;
77 virtual StatusCode write(
const void* data,
int len ) = 0;
79 virtual long long int seek(
long long int where,
int origin ) = 0;
107 virtual Connection* connection(
const std::string& dsn )
const = 0;
109 virtual Connections connections(
const IInterface* owner )
const = 0;
115 virtual long long int seek(
IDataConnection* con,
long long int where,
int origin ) = 0;
118 #endif // GAUDIUTILS_IIODATAMANAGER_H std::string m_name
Connection name/identifier.
IoType
I/O Connection types.
IoStatus
Status Code on bad file connection.
IDataConnection(const IInterface *own, std::string nam)
Standard constructor.
std::string m_fid
File ID of the connection.
std::vector< Connection * > Connections
const std::string & fid() const
Access file id.
def read(f, regex='.*', skipevents=0)
const IInterface * owner() const
Owner instance.
Connection::IoType IoType
const std::string & pfn() const
Access physical file name.
std::string m_pfn
Physical file name of the connection.
void setPFN(std::string fn)
Set physical file name.
int ageFile()
Increase age of I/O source.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
IDataConnection Connection
Connection type definition.
const std::string & name() const
Connection name.
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
int age() const
Access age counter.
void setFID(std::string fid)
Set file ID.
ABC describing basic data connection.
void resetAge()
Reset age.
Header file for std:chrono::duration-based Counters.