1 #ifndef GAUDIUTILS_IIODATAMANAGER_H 2 #define GAUDIUTILS_IIODATAMANAGER_H 41 enum IoType {
READ = 1 << 1, UPDATE = 1 << 2,
CREATE = 1 << 3, RECREATE = ( 1 << 4 ) + ( 1 << 3 ) };
65 int age()
const {
return m_age; }
75 virtual bool isConnected()
const = 0;
81 virtual long long int seek(
long long int where,
int origin ) = 0;
110 virtual Connection* connection(
const std::string& dsn )
const = 0;
112 virtual Connections connections(
const IInterface* owner )
const = 0;
118 virtual long long int seek(
IDataConnection* con,
long long int where,
int origin ) = 0;
121 #endif // GAUDIUTILS_IIODATAMANAGER_H int age() const
Access age counter.
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.
IDataConnection(const IInterface *own, std::string nam)
Standard constructor.
std::string m_fid
File ID of the connection.
std::vector< Connection * > Connections
def read(f, regex='.*', skipevents=0)
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.
const std::string & name() const
Connection name.
This class is used for returning status codes from appropriate routines.
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition of the basic interface.
IDataConnection Connection
Connection type definition.
const IInterface * owner() const
Owner instance.
void setFID(std::string fid)
Set file ID.
ABC describing basic data connection.
void resetAge()
Reset age.
Helper functions to set/get the application return code.