blob: c391eae3da5eca521b0c47c9659224e533d9944e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#pragma once
#include "XSipSignalingFields.h"
#include "XInternal.h"
namespace vagt
{
namespace encode
{
class XSipSignalingFieldsImp : public XSipSignalingFields, public XJsonable
{
public:
XSipSignalingFieldsImp(std::shared_ptr<XCommonEventHeader> header,
const XString& correlator,
const XString& localIpAddress,
const XString& localPort,
const XString& remoteIpAddress,
const XString& remotePort,
const XVendorNfNameFields& vendorNfNameFields);
virtual std::string toString() override;
virtual json toJson() override;
virtual std::shared_ptr<XCommonEventHeader> getCommonHeader() override;
virtual void setRemotePort(const XString& remotePort) override;
virtual void setSummarySip(const XString& summarySip) override;
virtual void setLocalPort(const XString& localPort) override;
virtual void setAdditionalInformation(const XHashMap& additionalInformation) override;
virtual void setLocalIpAddress(const XString& localIpAddress) override;
virtual void setCompressedSip(const XString& compressedSip) override;
virtual void setCorrelator(const XString& correlator) override;
virtual void setRemoteIpAddress(const XString& remoteIpAddress) override;
virtual void setVendorNfNameFields(const XVendorNfNameFields& vendorNfNameFields) override;
private:
//required
std::shared_ptr<XCommonEventHeader> header_;
XEnumSipSignalingFieldsSipSignalingFieldsVersion sipSignalingFieldsVersion_;
XString remotePort_;
XString localPort_;
XString localIpAddress_;
XString correlator_;
XString remoteIpAddress_;
XVendorNfNameFields vendorNfNameFields_;
//optional
XHashMap additionalInformation_;
std::map<std::string, XCommonValue> comVals_;
};
}
}
|