32#ifndef RCSC_PLAYER_FREE_MESSAGE_H
33#define RCSC_PLAYER_FREE_MESSAGE_H
50template < std::
size_t LEN >
55 std::string M_message;
74 return static_cast< char >(
'0' + LEN );
93 if (
static_cast< int >( to.length() + 1 + LEN )
96 std::cerr << __FILE__ <<
':' << __LINE__
97 <<
" FreeMessage: over the capacity. message="
98 << M_message <<
". current size = "
104 if ( M_message.length() != LEN )
106 std::cerr << __FILE__ <<
':' << __LINE__
107 <<
" Illegal message length. message="
108 << M_message <<
" must be length " << LEN
125 os <<
"[Free:" << M_message <<
']';
communication message data holder Header File
player's free formed say message encoder
Definition: free_message.h:52
bool toString(std::string &to) const
append the audio message to be sent
Definition: free_message.h:91
FreeMessage(const std::string &msg)
construct with raw message string
Definition: free_message.h:63
char header() const
pure virtual method. get the header character of this message
Definition: free_message.h:72
int length() const
pure virtual method. get the length of this message
Definition: free_message.h:81
std::ostream & printDebug(std::ostream &os) const
append the debug message
Definition: free_message.h:123
abstract player's say message
Definition: say_message.h:46
static const ServerParam & i()
singleton instance interface
Definition: server_param.h:695
Logger class Header File.
player's say message builder Header File
server parametor Header File