client/key/PublishKey.cpp

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------------
00002 Name:      PublishKey.cpp
00003 Project:   xmlBlaster.org
00004 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
00005 ------------------------------------------------------------------------------*/
00006 
00007 #include <client/key/PublishKey.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 PublishKey::PublishKey(Global& global, const string& oid, const string& mime, const string& mimeExt) 
00017    : MsgKeyBase(global)
00018 {
00019    if (!oid.empty()) setOid(oid);
00020    if (!mime.empty()) setContentMime(mime);
00021    if (!mimeExt.empty()) setContentMimeExtended(mimeExt);
00022 }
00023 
00024 PublishKey::PublishKey(Global& global, const MsgKeyData& data) 
00025    : MsgKeyBase(global, data)
00026 {
00027 }
00028 
00029 PublishKey::PublishKey(const PublishKey& key)
00030    : MsgKeyBase(key)
00031 {
00032 }
00033 
00034 PublishKey& PublishKey::operator =(const PublishKey& key)
00035 {
00036    msgKeyData_ = key.msgKeyData_;
00037    return *this;
00038 }
00039 
00040 void PublishKey::setDomain(const string& domain)
00041 {
00042    msgKeyData_.setDomain(domain);
00043 }
00044 
00045 void PublishKey::setOid(const string& oid)
00046 {
00047    msgKeyData_.setOid(oid);
00048 }
00049 
00050 void PublishKey::setContentMime(const string& contentMime)
00051 {
00052    msgKeyData_.setContentMime(contentMime);
00053 }
00054 
00055 void PublishKey::setContentMimeExtended(const string& contentMimeExtended)
00056 {
00057    msgKeyData_.setContentMimeExtended(contentMimeExtended);
00058 }
00059 
00060 void PublishKey::setClientTags(const string& tags)
00061 {
00062    msgKeyData_.setClientTags(tags);
00063 }
00064 
00065 }}}} // namespace
00066 
00067 
00068 
00069