query.h
来自「java开源的企业总线.xmlBlaster」· C头文件 代码 · 共 45 行
H
45 行
/*------------------------------------------------------------------------------Name: Query.hProject: xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment: Holding a query std::string and a prepared query object. ------------------------------------------------------------------------------*//** * Little container which holds a <filter> query std::string. * For better performance you can preparse the query std::string and * store your query object here as well (see example in GnuRegexFilter). * @see org.xmlBlaster.engine.mime.regex.GnuRegexFilter */#ifndef _UTIL_QOS_QUERY_H#define _UTIL_QOS_QUERY_H#include <util/xmlBlasterDef.h>#include <string>namespace org { namespace xmlBlaster { namespace util { namespace qos {class Dll_Export Query { const std::string ME; // = "Query"; org::xmlBlaster::util::Global& global_; std::string query_; void* preparedQuery_; // = null;public: Query(org::xmlBlaster::util::Global& global, const std::string& query=""); Query(const Query& query); Query& operator =(const Query& query); std::string getQuery(); void setPreparedQuery(void* preparedQuery, size_t size); void* getPreparedQuery(); std::string toString();};}}}} // namespace#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?