client/key/MsgKeyBase.cpp

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------------
00002 Name:      MsgKeyBase.cpp
00003 Project:   xmlBlaster.org
00004 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
00005 ------------------------------------------------------------------------------*/
00006 
00007 #include <client/key/MsgKeyBase.h>
00008 #include <util/Global.h>
00009 
00010 using namespace std;
00011 using namespace org::xmlBlaster::util;
00012 using namespace org::xmlBlaster::util::key;
00013 
00014 namespace org { namespace xmlBlaster { namespace client { namespace key {
00015 
00016 MsgKeyBase::MsgKeyBase(Global& global) 
00017    : ME("MsgKeyBase"), global_(global), log_(global_.getLog("org.xmlBlaster.client")), msgKeyData_(global_)
00018 {
00019 }
00020 
00021 MsgKeyBase::MsgKeyBase(Global& global, const MsgKeyData& data) 
00022    : ME("MsgKeyBase"), global_(global), log_(global_.getLog("org.xmlBlaster.client")), msgKeyData_(data)
00023 {
00024 }
00025 
00026 MsgKeyBase::MsgKeyBase(const MsgKeyBase& key)
00027    : ME(key.ME), global_(key.global_), log_(key.log_), msgKeyData_(key.msgKeyData_)
00028 {
00029 }
00030 
00031 MsgKeyBase& MsgKeyBase::operator =(const MsgKeyBase& key)
00032 {
00033    msgKeyData_ = key.msgKeyData_;
00034    return *this;
00035 }
00036 
00037 const MsgKeyData& MsgKeyBase::getData() const
00038 {
00039    return msgKeyData_;
00040 }
00041 
00042 string MsgKeyBase::getOid() const
00043 {
00044    return msgKeyData_.getOid();
00045 }
00046 
00047 string MsgKeyBase::getContentMime() const
00048 {
00049    return msgKeyData_.getContentMime();
00050 }
00051 
00052 string MsgKeyBase::getContentMimeExtended() const
00053 {
00054    return msgKeyData_.getContentMimeExtended();
00055 }
00056 
00057 string MsgKeyBase::getDomain() const
00058 {
00059    return msgKeyData_.getDomain();
00060 }
00061 string MsgKeyBase::toXml(const string& extraOffset) const
00062 {
00063    return msgKeyData_.toXml(extraOffset);
00064 }
00065 
00066 }}}} // namespace
00067 
00068 
00069 
00070