summaryrefslogtreecommitdiffstats
path: root/veslibrary/ves_cpplibrary/src/lib/encode/XCounterImp.h
blob: cd951c4eb3488ad16c4f1505a91384ce399826a5 (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
#pragma once

#include "XCounter.h"
#include "XInternal.h"

namespace vagt
{
    namespace encode
    {
        class XCounterImp : public XCounter, public XJsonable
        {
        public:
            XCounterImp(XEnumCounterCriticality criticality,
                const XHashMap& hashMap,
                const XString& thresholdCrossed);

            virtual json toJson() override;

            virtual void setThresholdCrossed(const XString& thresholdCrossed) override;
            virtual void setHashMap(const XHashMap& hashMap) override;
            virtual void setCriticality(XEnumCounterCriticality criticality) override;

        private:
            //required
            XString thresholdCrossed_;
            XHashMap hashMap_;
            XEnumCounterCriticality criticality_;
            //optional
            std::map<std::string, XCommonValue> comVals_;
        };
    }
}