53#include <XrdClient/XrdClient.hh>
54#include "XrdClient/XrdClientEnv.hh"
55#include "XrdSys/XrdSysHeaders.hh"
65 std::ifstream inputStream;
66 std::string remoteAddress;
76 virtual long size(){
return 0;}
80 virtual void open(
const char *filename){}
87 std::ifstream inputStream;
93 if(inputStream.is_open()==
true){
99 long pos = inputStream.tellg();
100 inputStream.seekg(0,std::ios_base::end);
101 long lastpos = inputStream.tellg();
102 inputStream.seekg(pos,std::ios_base::beg);
106 void open(
const char *filename){
107 inputStream.open(filename, std::ios::binary);
110 long position(
long pos){ inputStream.seekg(pos,std::ios_base::beg);
return pos; }
118 kXR_unt16 open_mode = (kXR_ur);
119 kXR_unt16 open_opts = (1);
120 XrdClient *cli = NULL;
122 long streamPosition = 0;
133 void open(
const char *filename);
Definition datastream.h:84
void open(const char *filename)
Definition datastream.h:106
long position()
Definition datastream.h:109
long size()
Definition datastream.h:98
int read(char *s, int size)
Definition datastream.h:111
long position(long pos)
Definition datastream.h:110
~datastreamLocalFile()
Definition datastream.h:92
Definition datastream.h:114
long position()
Definition datastream.cpp:83
~datastreamXrootd()
Default destructor.
Definition datastream.cpp:57
void open(const char *filename)
Definition datastream.cpp:64
datastreamXrootd()
The constructor for reader, printWarning routine will printout a warning message if the library was n...
Definition datastream.cpp:47
long size()
Definition datastream.cpp:72
int read(char *s, int size)
Definition datastream.cpp:85
Definition datastream.h:61
virtual int read(char *s, int size)
Definition datastream.h:81
virtual void open(const char *filename)
Definition datastream.h:80
virtual long position(long pos)
Definition datastream.h:78
virtual long size()
Definition datastream.h:76
virtual long position()
Definition datastream.h:77
HIPO namespace is used for the classes that read/write files and records.
Definition bank.cpp:45