10#include <matrixlib/matrixlib.h>
23enum{ none, telem_int8, telem_int16, telem_int32, telem_float, telem_double, telem_boolean };
52 float get_float(
void ){
return *data_float;};
53 int8_t get_int8(
void ){
return *data_int8;};
54 int16_t get_int16(
void ){
return *data_int16;};
55 int32_t get_int32(
void ){
return *data_int32;};
56 bool get_boolean(
void ){
return *data_boolean;};
59 void set_double(
double new_data );
60 void set_float(
float new_data );
61 void set_int8( int8_t new_data );
62 void set_int16( int16_t new_data );
63 void set_int32( int32_t new_data );
64 void set_boolean(
bool new_data );
Definition: sc_ccsds_data.h:26
~ccsds_data(void)
Destructor.
Definition: sc_ccsds_data.cc:19
int type
Type of data.
Definition: sc_ccsds_data.h:69
int location_in_frame
Location of data in the frame.
Definition: sc_ccsds_data.h:71
int number_of_octets
Number of octets.
Definition: sc_ccsds_data.h:73
double get_double(void)
Get value of the data.
Definition: sc_ccsds_data.h:51
void deallocate_memory(int type)
Deallocate memory.
Definition: sc_ccsds_data.cc:24
int get_location_in_frame(void)
Get the location in the CCSDS frame.
Definition: sc_ccsds_data.h:42
int get_type(void)
Get the data type.
Definition: sc_ccsds_data.h:36
void set_type(int type)
Set the data type.
Definition: sc_ccsds_data.h:39
double * data_double
Storage for the data.
Definition: sc_ccsds_data.h:75
void set_location_in_frame(int location)
Set the location in the CCSDS frame.
Definition: sc_ccsds_data.h:45
ccsds_data(void)
Constructor.
Definition: sc_ccsds_data.cc:14