summaryrefslogtreecommitdiffstats
path: root/veslibrary/ves_cpplibrary/src/lib/encode/XSyslogFieldsImp.h
diff options
context:
space:
mode:
Diffstat (limited to 'veslibrary/ves_cpplibrary/src/lib/encode/XSyslogFieldsImp.h')
-rwxr-xr-xveslibrary/ves_cpplibrary/src/lib/encode/XSyslogFieldsImp.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/veslibrary/ves_cpplibrary/src/lib/encode/XSyslogFieldsImp.h b/veslibrary/ves_cpplibrary/src/lib/encode/XSyslogFieldsImp.h
new file mode 100755
index 0000000..e730076
--- /dev/null
+++ b/veslibrary/ves_cpplibrary/src/lib/encode/XSyslogFieldsImp.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#include "XSyslogFields.h"
+#include "XInternal.h"
+
+namespace vagt
+{
+ namespace encode
+ {
+ class XSyslogFieldsImp : public XSyslogFields, public XJsonable
+ {
+ public:
+ XSyslogFieldsImp(std::shared_ptr<XCommonEventHeader> header,
+ XEnumSyslogFieldsEventSourceType eventSourceType,
+ const XString& syslogTag,
+ const XString& syslogMsg
+ );
+
+ virtual std::string toString() override;
+
+ virtual json toJson() override;
+
+ virtual std::shared_ptr<XCommonEventHeader> getCommonHeader() override;
+
+ virtual void setSyslogProcId(XNumber syslogProcId) override;
+ virtual void setSyslogFacility(XInteger syslogFacility) override;
+ virtual void setSyslogPri(XInteger syslogPri) override;
+ virtual void setEventSourceType(XEnumSyslogFieldsEventSourceType eventSourceType) override;
+ virtual void setSyslogMsgHost(const XString& syslogMsgHost) override;
+ virtual void setSyslogSev(XEnumSyslogFieldsSyslogSev syslogSev) override;
+ virtual void setSyslogSData(const XString& syslogSData) override;
+ virtual void setSyslogMsg(const XString& syslogMsg) override;
+ virtual void setSyslogProc(const XString& syslogProc) override;
+ virtual void setEventSourceHost(const XString& eventSourceHost) override;
+ virtual void setSyslogTs(const XString& syslogTs) override;
+ virtual void setSyslogTag(const XString& syslogTag) override;
+ virtual void setSyslogVer(XNumber syslogVer) override;
+ virtual void setAdditionalFields(const XHashMap& additionalFields) override;
+ virtual void setSyslogSdId(const XString& syslogSdId) override;
+
+ private:
+ //required
+ std::shared_ptr<XCommonEventHeader> header_;
+ XEnumSyslogFieldsEventSourceType eventSourceType_;
+ XString syslogMsg_;
+ XEnumSyslogFieldsSyslogFieldsVersion syslogFieldsVersion_;
+ XString syslogTag_;
+ //optional
+ XEnumSyslogFieldsSyslogSev syslogSev_;
+ XHashMap additionalFields_;
+ std::map<std::string, XCommonValue> comVals_;
+ };
+ }
+}
+ \ No newline at end of file