1 #ifndef GAUDIUTILS_IIODATAMANAGER_H 2 #define GAUDIUTILS_IIODATAMANAGER_H 44 : m_name(
std::move(nam)), m_owner(own) {}
62 int age()
const {
return m_age; }
72 virtual bool isConnected()
const = 0;
74 virtual StatusCode read(
void*
const data,
size_t len) = 0;
78 virtual long long int seek(
long long int where,
int origin) = 0;
105 virtual Connection* connection(
const std::string& dsn)
const = 0;
107 virtual Connections connections(
const IInterface* owner)
const = 0;
113 virtual long long int seek(
IDataConnection* con,
long long int where,
int origin) = 0;
116 #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
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
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.
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.