#include <string>
#include <streambuf>
#include <iostream>
#include "enum.h"
#include "mpr.h"
#include "cio.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::string > | get_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 msgwin_get_line_autohist | ( | prompt, | |||
buf, | |||||
len | ) | msgwin_get_line_autohist_temp<__LINE__>(prompt, buf, len) |
bool any_messages | ( | ) |
int channel_to_colour | ( | msg_channel_type | channel, | |
int | param = 0 | |||
) |
void clear_message_store | ( | ) |
void clear_message_window | ( | ) |
void display_message_window | ( | ) |
void flush_prev_message | ( | ) |
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 | |||
) |
std::string get_last_messages | ( | int | mcount | ) |
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 | ) |
void mesclr | ( | bool | force = false |
) |
void more | ( | bool | user_forced = false |
) |
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_clear_temporary | ( | ) |
int msgwin_get_line | ( | std::string | prompt, | |
char * | buf, | |||
int | len, | |||
input_history * | mh = NULL , |
|||
int(*)(int &c) | keyproc = NULL | |||
) |
void msgwin_got_input | ( | ) |
unsigned int msgwin_lines | ( | ) |
void msgwin_new_cmd | ( | ) |
void msgwin_new_turn | ( | ) |
void msgwin_prompt | ( | std::string | prompt | ) |
void msgwin_reply | ( | std::string | reply | ) |
void msgwin_set_temporary | ( | bool | temp | ) |
std::ostream& operator<< | ( | std::ostream & | os, | |
const msg::setparam & | sp | |||
) |
void replay_messages | ( | ) |
void save_messages | ( | writer & | outf | ) |
void scroll_message_window | ( | int | n | ) |
void set_more_autoclear | ( | bool | on | ) |
void set_msg_dump_file | ( | FILE * | file | ) |