1 /*------------------------------------------------------------------------------
 2 Name:      MsgKeyBase.cpp
 3 Project:   xmlBlaster.org
 4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
 5 ------------------------------------------------------------------------------*/
 6 
 7 #include <client/key/MsgKeyBase.h>
 8 #include <util/Global.h>
 9 
10 using namespace std;
11 using namespace org::xmlBlaster::util;
12 using namespace org::xmlBlaster::util::key;
13 
14 namespace org { namespace xmlBlaster { namespace client { namespace key {
15 
16 MsgKeyBase::MsgKeyBase(Global& global) 
17    : ME("MsgKeyBase"), global_(global), log_(global_.getLog("org.xmlBlaster.client")), msgKeyData_(global_)
18 {
19 }
20 
21 MsgKeyBase::MsgKeyBase(Global& global, const MsgKeyData& data) 
22    : ME("MsgKeyBase"), global_(global), log_(global_.getLog("org.xmlBlaster.client")), msgKeyData_(data)
23 {
24 }
25 
26 MsgKeyBase::MsgKeyBase(const MsgKeyBase& key)
27    : ME(key.ME), global_(key.global_), log_(key.log_), msgKeyData_(key.msgKeyData_)
28 {
29 }
30 
31 MsgKeyBase& MsgKeyBase::operator =(const MsgKeyBase& key)
32 {
33    msgKeyData_ = key.msgKeyData_;
34    return *this;
35 }
36 
37 const MsgKeyData& MsgKeyBase::getData() const
38 {
39    return msgKeyData_;
40 }
41 
42 string MsgKeyBase::getOid() const
43 {
44    return msgKeyData_.getOid();
45 }
46 
47 string MsgKeyBase::getContentMime() const
48 {
49    return msgKeyData_.getContentMime();
50 }
51 
52 string MsgKeyBase::getContentMimeExtended() const
53 {
54    return msgKeyData_.getContentMimeExtended();
55 }
56 
57 string MsgKeyBase::getDomain() const
58 {
59    return msgKeyData_.getDomain();
60 }
61 string MsgKeyBase::toXml(const string& extraOffset) const
62 {
63    return msgKeyData_.toXml(extraOffset);
64 }
65 
66 }}}} // namespace


syntax highlighted by Code2HTML, v. 0.9.1