mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-09-27 15:56:48 -04:00
DataTree cleanup/refactor..
This commit is contained in:
parent
cf2b11f496
commit
36ff762d3a
File diff suppressed because it is too large
Load Diff
@ -64,11 +64,10 @@ using namespace std;
|
|||||||
#define DATA_LONG_VECTOR 18
|
#define DATA_LONG_VECTOR 18
|
||||||
#define DATA_ULONG_VECTOR 19
|
#define DATA_ULONG_VECTOR 19
|
||||||
#define DATA_LONGLONG_VECTOR 20
|
#define DATA_LONGLONG_VECTOR 20
|
||||||
#define DATA_ULONGLONG_VECTOR 21
|
#define DATA_FLOAT_VECTOR 21
|
||||||
#define DATA_FLOAT_VECTOR 22
|
#define DATA_DOUBLE_VECTOR 22
|
||||||
#define DATA_DOUBLE_VECTOR 23
|
#define DATA_LONGDOUBLE_VECTOR 23
|
||||||
#define DATA_LONGDOUBLE_VECTOR 24
|
#define DATA_VOID 24
|
||||||
#define DATA_VOID 25
|
|
||||||
|
|
||||||
|
|
||||||
/* map comparison function */
|
/* map comparison function */
|
||||||
@ -122,7 +121,8 @@ class DataElement
|
|||||||
private:
|
private:
|
||||||
unsigned char data_type;
|
unsigned char data_type;
|
||||||
unsigned int data_size;
|
unsigned int data_size;
|
||||||
|
unsigned int unit_size;
|
||||||
|
|
||||||
char *data_val;
|
char *data_val;
|
||||||
|
|
||||||
void data_init(long data_size_in);
|
void data_init(long data_size_in);
|
||||||
@ -133,9 +133,9 @@ public:
|
|||||||
|
|
||||||
int getDataType();
|
int getDataType();
|
||||||
long getDataSize();
|
long getDataSize();
|
||||||
|
int getUnitSize();
|
||||||
|
|
||||||
/* set overloads */
|
/* set overloads */
|
||||||
// void set(const bool &bool_in);
|
|
||||||
void set(const char &char_in);
|
void set(const char &char_in);
|
||||||
void set(const unsigned char &uchar_in);
|
void set(const unsigned char &uchar_in);
|
||||||
void set(const int &int_in);
|
void set(const int &int_in);
|
||||||
|
Loading…
Reference in New Issue
Block a user