util/qos/Query.h

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------------
00002 Name:      Query.h
00003 Project:   xmlBlaster.org
00004 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
00005 Comment:   Holding a query std::string and a prepared query object. 
00006 ------------------------------------------------------------------------------*/
00007 
00015 #ifndef _UTIL_QOS_QUERY_H
00016 #define _UTIL_QOS_QUERY_H
00017 
00018 #include <util/xmlBlasterDef.h>
00019 #include <string>
00020 
00021 
00022 
00023 namespace org { namespace xmlBlaster { namespace util { namespace qos {
00024 
00025 class Dll_Export Query 
00026 {
00027    const std::string ME; // = "Query";
00028    org::xmlBlaster::util::Global&      global_;
00029    std::string       query_;
00030    void*        preparedQuery_; // = null;
00031 
00032 public:
00033    Query(org::xmlBlaster::util::Global& global, const std::string& query="");
00034    Query(const Query& query);
00035    Query& operator =(const Query& query);
00036    std::string getQuery();
00037    void setPreparedQuery(void* preparedQuery, size_t size);
00038    void* getPreparedQuery();
00039    std::string toString();
00040 };
00041 
00042 }}}} // namespace
00043 
00044 #endif