 |
GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
|
|
Go to the documentation of this file.
11 #ifndef INCLUDED_GR_MESSAGE_H
12 #define INCLUDED_GR_MESSAGE_H
30 typedef std::shared_ptr<message>
sptr;
38 std::vector<unsigned char> d_buf;
39 unsigned char* d_msg_start;
40 unsigned char* d_msg_end;
46 unsigned char* buf_data() {
return d_buf.data(); }
47 size_t buf_len()
const {
return d_buf.size(); }
53 static sptr make(
long type = 0,
double arg1 = 0,
double arg2 = 0,
size_t length = 0);
55 static sptr make_from_string(
const std::string s,
63 long type()
const {
return d_type; }
64 double arg1()
const {
return d_arg1; }
65 double arg2()
const {
return d_arg2; }
71 unsigned char*
msg()
const {
return d_msg_start; }
72 size_t length()
const {
return d_msg_end - d_msg_start; }
73 std::string to_string()
const;
double arg2() const
Definition: message.h:65
Message class.
Definition: message.h:27
unsigned char * msg() const
Definition: message.h:71
size_t length() const
Definition: message.h:72
GR_RUNTIME_API long message_ncurrently_allocated()
void set_arg2(double arg2)
Definition: message.h:69
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
std::shared_ptr< message > sptr
Definition: message.h:30
long type() const
Definition: message.h:63
void set_type(long type)
Definition: message.h:67
void set_arg1(double arg1)
Definition: message.h:68
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29
PMT_API size_t length(const pmt_t &v)
Return the number of elements in v.
double arg1() const
Definition: message.h:64
thread-safe message queue
Definition: msg_queue.h:24