GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
gr::message Class Reference

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
 

Detailed Description

Message class.

The ideas and method names for adjustable message length were lifted from the click modular router "Packet" class.

Member Typedef Documentation

typedef boost::shared_ptr<message> gr::message::sptr

Constructor & Destructor Documentation

gr::message::~message ( )

Member Function Documentation

double gr::message::arg1 ( ) const
inline
double gr::message::arg2 ( ) const
inline
size_t gr::message::length ( ) const
inline
static sptr gr::message::make ( long  type = 0,
double  arg1 = 0,
double  arg2 = 0,
size_t  length = 0 
)
static

public constructor for message

static sptr gr::message::make_from_string ( const std::string  s,
long  type = 0,
double  arg1 = 0,
double  arg2 = 0 
)
static
unsigned char* gr::message::msg ( ) const
inline
void gr::message::set_arg1 ( double  arg1)
inline
void gr::message::set_arg2 ( double  arg2)
inline
void gr::message::set_type ( long  type)
inline
std::string gr::message::to_string ( ) const
long gr::message::type ( ) const
inline

Friends And Related Function Documentation

friend class msg_queue
friend

The documentation for this class was generated from the following file: