current version
[opsoft_test.git] / gclib2 / include / darray.h
blob2eeff1ae498b71077f9ac9e9c21494b313191e71
1 /*
2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
5 */
7 #ifndef DEFINE_DARRAY_H
8 #define DEFINE_DARRAY_H
10 /// Класс - массив (char *).
11 class DArray
13 public:
14 DArray (int asize = 0);
15 ~DArray ();
17 bool add (char * VALUE);
18 void drop ();
19 char * get (int NUM);
20 int get_size ();
21 int set_size (int);
22 inline char ** get_skeleton ()
24 return values;
26 void foreach (Dfunc_t);
27 void set (long, char *);
28 void init (int asize);
29 bool from_file (char * __from);
30 inline int get_real_size () {
31 return size;
34 private:
35 char ** values;
36 int size;
37 int used;
41 #endif