Message class. More...
#include <gnuradio/message.h>
Public Types | |
typedef boost::shared_ptr< message > | sptr |
Public Member Functions | |
~message () | |
long | type () const |
double | arg1 () const |
double | arg2 () const |
void | set_type (long type) |
void | set_arg1 (double arg1) |
void | set_arg2 (double arg2) |
unsigned char * | msg () const |
size_t | length () const |
std::string | to_string () const |
Static Public Member Functions | |
static sptr | make (long type=0, double arg1=0, double arg2=0, size_t length=0) |
public constructor for message More... | |
static sptr | make_from_string (const std::string s, long type=0, double arg1=0, double arg2=0) |
Friends | |
class | msg_queue |
Message class.
The ideas and method names for adjustable message length were lifted from the click modular router "Packet" class.
typedef boost::shared_ptr<message> gr::message::sptr |
gr::message::~message | ( | ) |
|
inline |
|
inline |
|
inline |
References GR_RUNTIME_API, and gr::message_ncurrently_allocated().
|
static |
public constructor for message
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
std::string gr::message::to_string | ( | ) | const |
|
inline |
|
friend |