40 sprintf(buff,
"lXDR version %d.%d (%02d.%02d.%d) by W.G.J. Langeveld, SLAC",
51 lXDR(
const char *filename = 0,
bool open_for_write =
false);
61 void setFileName(
const char *filename,
bool open_for_write =
false);
123 double ntohd(
double d)
const;
133 #define LXDR_SUCCESS 0
134 #define LXDR_OPENFAILURE 1
135 #define LXDR_READONLY 2
136 #define LXDR_WRITEONLY 3
137 #define LXDR_NOFILE 4
138 #define LXDR_READERROR 5
139 #define LXDR_WRITEERROR 6
140 #define LXDR_SEEKERROR 7
long filePosition(long pos=-1)
void setFileName(const char *filename, bool open_for_write=false)
static int getMajor(void)
double ntohd(double d) const
long writeDoubleArray(const double *data, long length)
lXDR(const char *filename=0, bool open_for_write=false)
long writeLong(long data)
void setError(long error)
lXDR & operator=(const lXDR &)
long * readLongArray(long &length)
const char * getFileName(void) const
static const char * getText(void)
double * readDoubleArray(long &length)
long writeDouble(double data)
static int getMinor(void)
double htond(double d) const
long writeString(const char *data)
double * readFloatArray(long &length)
long getError(void) const
long writeLongArray(const long *data, long length)
const char * readString(long &length)