client/key/MsgKeyBase.h

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------------
00002 Name:      MsgKeyBase.h
00003 Project:   xmlBlaster.org
00004 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
00005 ------------------------------------------------------------------------------*/
00006 
00018 #ifndef _CLIENT_KEY_MSGKEYBASE_H
00019 #define _CLIENT_KEY_MSGKEYBASE_H
00020 
00021 #include <util/key/MsgKeyData.h>
00022 #include <util/I_Log.h>
00023 
00024 namespace org { namespace xmlBlaster { namespace client { namespace key {
00025 
00026 class Dll_Export MsgKeyBase
00027 {
00028 protected:
00029    std::string  ME;
00030    org::xmlBlaster::util::Global& global_;
00031    org::xmlBlaster::util::I_Log&    log_;
00032 
00036    org::xmlBlaster::util::key::MsgKeyData msgKeyData_;
00037 
00038 public:
00039 
00043    MsgKeyBase(org::xmlBlaster::util::Global& global);
00044    
00045    MsgKeyBase(org::xmlBlaster::util::Global& global, const org::xmlBlaster::util::key::MsgKeyData& data);
00046 
00047    MsgKeyBase(const MsgKeyBase& key);
00048 
00049    MsgKeyBase& operator =(const MsgKeyBase& key);
00050 
00051    const org::xmlBlaster::util::key::MsgKeyData& getData() const;
00052 
00053    org::xmlBlaster::util::Global& getGlobal() { return global_; }
00054 
00058    std::string getOid() const;
00059 
00066    std::string getContentMime() const;
00067 
00077    std::string getContentMimeExtended() const;
00078 
00083    std::string getDomain() const;
00084 
00091    std::string toXml(const std::string& extraOffset="") const;
00092 
00093 };
00094 
00095 }}}} // namespace
00096 
00097 #endif
00098 
00099 
00100