rllib  1
rlbuffer.h
Go to the documentation of this file.
1 /***************************************************************************
2  rlbuffer.h - description
3  -------------------
4  begin : Sun Aug 24 2014
5  copyright : (C) 2014 by R. Lehrig
6  email : lehrig@t-online.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13  * published by the Free Software Foundation *
14  * *
15  ***************************************************************************/
16 #ifndef _RL_BUFFER_H_
17 #define _RL_BUFFER_H_
18 
19 #include "rldefine.h"
20 
24 class rlBuffer
25 {
26 public:
27  rlBuffer();
28  virtual ~rlBuffer();
29  int resize(int size);
30  int size();
31  int setText(const char *text);
32  char *line(int i);
33  void *adr;
34  char *c;
35  unsigned char *uc;
36  int *i;
37  unsigned int *ui;
38  long *l;
39  unsigned long *ul;
40  float *f;
41  double *d;
42 
43 private:
44  int _size;
45 };
46 #endif
int _size
Definition: rlbuffer.h:44
void * adr
Definition: rlbuffer.h:33
int size()
Definition: rlbuffer.cpp:55
unsigned long * ul
Definition: rlbuffer.h:39
rlBuffer()
Definition: rlbuffer.cpp:18
unsigned int * ui
Definition: rlbuffer.h:37
char * line(int i)
Definition: rlbuffer.cpp:72
long * l
Definition: rlbuffer.h:38
double * d
Definition: rlbuffer.h:41
virtual ~rlBuffer()
Definition: rlbuffer.cpp:31
unsigned char * uc
Definition: rlbuffer.h:35
int resize(int size)
Definition: rlbuffer.cpp:36
int * i
Definition: rlbuffer.h:36
int setText(const char *text)
Definition: rlbuffer.cpp:60
float * f
Definition: rlbuffer.h:40
char * c
Definition: rlbuffer.h:34