Realistic 3D camera system
3D camera system components
Public Types | Public Member Functions | List of all members
chat_message Class Reference

#include <chat_message.hpp>

Public Types

enum  { header_length = 4 }
 
enum  { max_body_length = 512 }
 
enum  { header_length = 4 }
 
enum  { max_body_length = 512 }
 

Public Member Functions

 chat_message ()
 
const char * data () const
 
char * data ()
 
size_t length () const
 
const char * body () const
 
char * body ()
 
size_t body_length () const
 
void body_length (size_t new_length)
 
bool decode_header ()
 
void encode_header ()
 
 chat_message ()
 
const char * data () const
 
char * data ()
 
std::size_t length () const
 
const char * body () const
 
char * body ()
 
std::size_t body_length () const
 
void body_length (std::size_t new_length)
 
bool decode_header ()
 
void encode_header ()
 

Detailed Description

Definition at line 18 of file chat_message.hpp.

Member Enumeration Documentation

anonymous enum
Enumerator
header_length 

Definition at line 21 of file chat_message.hpp.

anonymous enum
Enumerator
max_body_length 

Definition at line 22 of file chat_message.hpp.

anonymous enum
Enumerator
header_length 

Definition at line 21 of file chat_message.hpp.

anonymous enum
Enumerator
max_body_length 

Definition at line 22 of file chat_message.hpp.

Constructor & Destructor Documentation

chat_message::chat_message ( )
inline

Definition at line 24 of file chat_message.hpp.

chat_message::chat_message ( )
inline

Definition at line 24 of file chat_message.hpp.

Member Function Documentation

const char* chat_message::body ( ) const
inline

Definition at line 44 of file chat_message.hpp.

const char* chat_message::body ( ) const
inline

Definition at line 44 of file chat_message.hpp.

char* chat_message::body ( )
inline

Definition at line 49 of file chat_message.hpp.

char* chat_message::body ( )
inline

Definition at line 49 of file chat_message.hpp.

size_t chat_message::body_length ( ) const
inline

Definition at line 54 of file chat_message.hpp.

std::size_t chat_message::body_length ( ) const
inline

Definition at line 54 of file chat_message.hpp.

void chat_message::body_length ( std::size_t  new_length)
inline

Definition at line 59 of file chat_message.hpp.

void chat_message::body_length ( size_t  new_length)
inline

Definition at line 59 of file chat_message.hpp.

const char* chat_message::data ( ) const
inline

Definition at line 29 of file chat_message.hpp.

const char* chat_message::data ( ) const
inline

Definition at line 29 of file chat_message.hpp.

char* chat_message::data ( )
inline

Definition at line 34 of file chat_message.hpp.

char* chat_message::data ( )
inline

Definition at line 34 of file chat_message.hpp.

bool chat_message::decode_header ( )
inline

Definition at line 66 of file chat_message.hpp.

bool chat_message::decode_header ( )
inline

Definition at line 66 of file chat_message.hpp.

void chat_message::encode_header ( )
inline

Definition at line 79 of file chat_message.hpp.

void chat_message::encode_header ( )
inline

Definition at line 80 of file chat_message.hpp.

std::size_t chat_message::length ( ) const
inline

Definition at line 39 of file chat_message.hpp.

size_t chat_message::length ( ) const
inline

Definition at line 39 of file chat_message.hpp.


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