Bridges-C++  3.2.0
Bridges(C++API)
Public Member Functions | Static Public Member Functions | List of all members
sio::object_message Class Reference

#include <sio_message.h>

Inheritance diagram for sio::object_message:
sio::message

Public Member Functions

void insert (const std::string &key, message::ptr const &message)
 
void insert (const std::string &key, const std::string &text)
 
void insert (const std::string &key, std::string &&text)
 
void insert (const std::string &key, std::shared_ptr< std::string > const &binary)
 
void insert (const std::string &key, std::shared_ptr< const std::string > const &binary)
 
bool has (const std::string &key)
 
const message::ptrat (const std::string &key) const
 
const message::ptroperator[] (const std::string &key) const
 
bool has (const std::string &key) const
 
std::map< std::string, message::ptr > & get_map ()
 
const std::map< std::string, message::ptr > & get_map () const
 
- Public Member Functions inherited from sio::message
virtual ~message ()
 
flag get_flag () const
 
virtual bool get_bool () const
 
virtual int64_t get_int () const
 
virtual double get_double () const
 
virtual std::string const & get_string () const
 
virtual std::shared_ptr< const std::string > const & get_binary () const
 
virtual const std::vector< ptr > & get_vector () const
 
virtual std::vector< ptr > & get_vector ()
 

Static Public Member Functions

static message::ptr create ()
 

Additional Inherited Members

- Public Types inherited from sio::message
enum  flag {
  flag_integer, flag_double, flag_string, flag_binary,
  flag_array, flag_object, flag_boolean, flag_null
}
 
typedef std::shared_ptr< messageptr
 
- Protected Member Functions inherited from sio::message
 message (flag f)
 

Member Function Documentation

◆ at()

const message::ptr& sio::object_message::at ( const std::string &  key) const
inline

◆ create()

static message::ptr sio::object_message::create ( )
inlinestatic

◆ get_map() [1/2]

std::map<std::string, message::ptr>& sio::object_message::get_map ( )
inlinevirtual

Reimplemented from sio::message.

◆ get_map() [2/2]

const std::map<std::string, message::ptr>& sio::object_message::get_map ( ) const
inlinevirtual

Reimplemented from sio::message.

◆ has() [1/2]

bool sio::object_message::has ( const std::string &  key)
inline

◆ has() [2/2]

bool sio::object_message::has ( const std::string &  key) const
inline

◆ insert() [1/5]

void sio::object_message::insert ( const std::string &  key,
message::ptr const &  message 
)
inline

◆ insert() [2/5]

void sio::object_message::insert ( const std::string &  key,
const std::string &  text 
)
inline

◆ insert() [3/5]

void sio::object_message::insert ( const std::string &  key,
std::string &&  text 
)
inline

◆ insert() [4/5]

void sio::object_message::insert ( const std::string &  key,
std::shared_ptr< std::string > const &  binary 
)
inline

◆ insert() [5/5]

void sio::object_message::insert ( const std::string &  key,
std::shared_ptr< const std::string > const &  binary 
)
inline

◆ operator[]()

const message::ptr& sio::object_message::operator[] ( const std::string &  key) const
inline

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