33 #ifndef CmdTranslation_h 34 #define CmdTranslation_h 1 36 #include <libxml/encoding.h> 37 #include <libxml/xmlwriter.h> 52 typedef bool (*p_cmd_translator)(
BESTokenizer &tokenizer,
53 xmlTextWriterPtr writer ) ;
54 static map< string, p_cmd_translator > _translations ;
56 static bool _is_show ;
59 xmlTextWriterPtr writer ) ;
60 static bool translate_show_error(
BESTokenizer &tokenizer,
61 xmlTextWriterPtr writer ) ;
63 xmlTextWriterPtr writer ) ;
65 xmlTextWriterPtr writer ) ;
67 xmlTextWriterPtr writer ) ;
68 static bool translate_container(
BESTokenizer &tokenizer,
69 xmlTextWriterPtr writer ) ;
71 xmlTextWriterPtr writer ) ;
73 xmlTextWriterPtr writer ) ;
75 xmlTextWriterPtr writer ) ;
78 xmlTextWriterPtr writer ) ;
80 static int initialize(
int argc,
char **argv ) ;
83 static bool is_show() {
return _is_show ; }
84 static void set_show(
bool val ) { _is_show = val ; }
87 p_cmd_translator func ) ;
90 static string translate(
const string &commands ) ;
92 static void dump( ostream &strm ) ;
95 #endif // CmdTranslation_h
static void add_translation(const string &name, p_cmd_translator func)
tokenizer for the BES request command string
static void set_show(bool val)
static int terminate(void)
static string translate(const string &commands)
static void remove_translation(const string &name)
static void dump(ostream &strm)
static int initialize(int argc, char **argv)