NCBI C++ ToolKit
Classes | Macros
command_processor.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <string>
#include "file_messaging.hpp"
+ Include dependency graph for command_processor.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CommandProcessor
 

Macros

#define DECLARE_PARAMS
 
#define PASS_PARAMS   command, dataIn, status, dataOut
 
#define DECLARE_COMMAND_FUNCTION(name)    void DoCommand_##name ( DECLARE_PARAMS )
 
#define IMPLEMENT_COMMAND_FUNCTION(name)    void CommandProcessor::DoCommand_##name ( DECLARE_PARAMS )
 
#define PROCESS_IF_COMMAND_IS(name)
 
#define ADD_REPLY_ERROR(msg)
 

Macro Definition Documentation

◆ ADD_REPLY_ERROR

#define ADD_REPLY_ERROR (   msg)
Value:
do { \
*dataOut += msg; \
*dataOut += '\n'; \
} while (0)

Definition at line 70 of file command_processor.hpp.

◆ DECLARE_COMMAND_FUNCTION

#define DECLARE_COMMAND_FUNCTION (   name)     void DoCommand_##name ( DECLARE_PARAMS )

Definition at line 56 of file command_processor.hpp.

◆ DECLARE_PARAMS

#define DECLARE_PARAMS
Value:
const std::string& command, const std::string& dataIn, \
ncbi::MessageResponder::ReplyStatus *status, std::string *dataOut
string
Definition: cgiapp.hpp:687
const char * command

Definition at line 49 of file command_processor.hpp.

◆ IMPLEMENT_COMMAND_FUNCTION

#define IMPLEMENT_COMMAND_FUNCTION (   name)     void CommandProcessor::DoCommand_##name ( DECLARE_PARAMS )

Definition at line 59 of file command_processor.hpp.

◆ PASS_PARAMS

#define PASS_PARAMS   command, dataIn, status, dataOut

Definition at line 53 of file command_processor.hpp.

◆ PROCESS_IF_COMMAND_IS

#define PROCESS_IF_COMMAND_IS (   name)
Value:
do { \
if (command == #name ) { \
DoCommand_##name ( PASS_PARAMS ); \
return; \
} \
} while (0)
#define PASS_PARAMS

Definition at line 62 of file command_processor.hpp.

Modified on Thu Feb 22 17:09:27 2024 by modify_doxy.py rev. 669887