Go to the documentation of this file.Go to the SVN repository for this file.
34 #ifndef COMMAND_PROCESSOR__HPP
35 #define COMMAND_PROCESSOR__HPP
49 #define DECLARE_PARAMS \
50 const std::string& command, const std::string& dataIn, \
51 ncbi::MessageResponder::ReplyStatus *status, std::string *dataOut
53 #define PASS_PARAMS command, dataIn, status, dataOut
56 #define DECLARE_COMMAND_FUNCTION(name) \
57 void DoCommand_##name ( DECLARE_PARAMS )
59 #define IMPLEMENT_COMMAND_FUNCTION(name) \
60 void CommandProcessor::DoCommand_##name ( DECLARE_PARAMS )
62 #define PROCESS_IF_COMMAND_IS(name) \
64 if (command == #name ) { \
65 DoCommand_##name ( PASS_PARAMS ); \
70 #define ADD_REPLY_ERROR(msg) \
72 *status = MessageResponder::REPLY_ERROR; \
StructureWindow * structureWindow
void ProcessCommand(const std::string &command, const std::string &dataIn, ncbi::MessageResponder::ReplyStatus *status, std::string *dataOut)
CommandProcessor(StructureWindow *sw)
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_SCOPE(ns)
Define a new scope.
static string LoadFile(CNcbiIstream &str)
#define DECLARE_COMMAND_FUNCTION(name)