message.h File Reference

#include <string>
#include <streambuf>
#include <iostream>
#include "enum.h"
#include "mpr.h"
#include "cio.h"

Include dependency graph for message.h:

Go to the source code of this file.

Namespaces

namespace  msg

Classes

class  no_messages
struct  msg::setparam
struct  msg::mute
class  msg::mpr_stream_buf

Defines

#define msgwin_get_line_autohist(prompt, buf, len)   msgwin_get_line_autohist_temp<__LINE__>(prompt, buf, len)

Functions

void display_message_window ()
void clear_message_window ()
void scroll_message_window (int n)
void mesclr (bool force=false)
void flush_prev_message ()
void more (bool user_forced=false)
void formatted_mpr (const formatted_string &fs, msg_channel_type channel=MSGCH_PLAIN, int param=0)
void formatted_message_history (const std::string &st, msg_channel_type channel=MSGCH_PLAIN, int param=0, int wrap_col=0)
void mpr_comma_separated_list (const std::string prefix, const std::vector< std::string > list, const std::string &andc=", and ", const std::string &comma=", ", const msg_channel_type channel=MSGCH_PLAIN, const int param=0)
void msgwin_set_temporary (bool temp)
void msgwin_clear_temporary ()
void msgwin_prompt (std::string prompt)
void msgwin_reply (std::string reply)
unsigned int msgwin_lines ()
void msgwin_got_input ()
int msgwin_get_line (std::string prompt, char *buf, int len, input_history *mh=NULL, int(*keyproc)(int &c)=NULL)
void msgwin_new_cmd ()
void msgwin_new_turn ()
void save_messages (writer &outf)
void load_messages (reader &inf)
void clear_message_store ()
bool any_messages ()
void replay_messages ()
void set_more_autoclear (bool on)
std::string get_last_messages (int mcount)
std::vector< std::stringget_recent_messages (int &message_pos, bool dumpworthy_only=true, std::vector< int > *channels=NULL)
int channel_to_colour (msg_channel_type channel, int param=0)
std::ostream & msg::streams (msg_channel_type chan)
void msg::initialise_mpr_streams ()
void msg::deinitialise_mpr_streams ()
std::ostream & operator<< (std::ostream &os, const msg::setparam &sp)
void set_msg_dump_file (FILE *file)

Variables

std::ostream msg::stream


Define Documentation

#define msgwin_get_line_autohist ( prompt,
buf,
len   )     msgwin_get_line_autohist_temp<__LINE__>(prompt, buf, len)


Function Documentation

bool any_messages (  ) 

Here is the call graph for this function:

int channel_to_colour ( msg_channel_type  channel,
int  param = 0 
)

void clear_message_store (  ) 

Here is the call graph for this function:

void clear_message_window (  ) 

void display_message_window (  ) 

Here is the call graph for this function:

void flush_prev_message (  ) 

Here is the call graph for this function:

void formatted_message_history ( const std::string st,
msg_channel_type  channel = MSGCH_PLAIN,
int  param = 0,
int  wrap_col = 0 
)

void formatted_mpr ( const formatted_string fs,
msg_channel_type  channel = MSGCH_PLAIN,
int  param = 0 
)

Here is the call graph for this function:

std::string get_last_messages ( int  mcount  ) 

Here is the call graph for this function:

std::vector<std::string> get_recent_messages ( int &  message_pos,
bool  dumpworthy_only = true,
std::vector< int > *  channels = NULL 
) [inline]

void load_messages ( reader inf  ) 

Here is the call graph for this function:

void mesclr ( bool  force = false  ) 

Here is the call graph for this function:

void more ( bool  user_forced = false  ) 

Here is the call graph for this function:

void mpr_comma_separated_list ( const std::string  prefix,
const std::vector< std::string list,
const std::string andc = ", and ",
const std::string comma = ", ",
const msg_channel_type  channel = MSGCH_PLAIN,
const int  param = 0 
)

Here is the call graph for this function:

void msgwin_clear_temporary (  ) 

Here is the call graph for this function:

int msgwin_get_line ( std::string  prompt,
char *  buf,
int  len,
input_history mh = NULL,
int(*)(int &c)  keyproc = NULL 
)

Here is the call graph for this function:

void msgwin_got_input (  ) 

Here is the call graph for this function:

unsigned int msgwin_lines (  ) 

Here is the call graph for this function:

void msgwin_new_cmd (  ) 

Here is the call graph for this function:

void msgwin_new_turn (  ) 

Here is the call graph for this function:

void msgwin_prompt ( std::string  prompt  ) 

Here is the call graph for this function:

void msgwin_reply ( std::string  reply  ) 

Here is the call graph for this function:

void msgwin_set_temporary ( bool  temp  ) 

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const msg::setparam sp 
)

Here is the call graph for this function:

void replay_messages (  ) 

Here is the call graph for this function:

void save_messages ( writer outf  ) 

Here is the call graph for this function:

void scroll_message_window ( int  n  ) 

Here is the call graph for this function:

void set_more_autoclear ( bool  on  ) 

void set_msg_dump_file ( FILE *  file  ) 


Generated on Thu Jan 13 13:10:27 2011 by  doxygen 1.5.6