summaryrefslogtreecommitdiffstats
path: root/veslibrary/ves_cpplibrary/src/lib/encode/XNamedHashMapImp.h
blob: 98ba257ef4c44042d271b3aefa8472f62878e57f (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
#pragma once
        
#include "XNamedHashMap.h"
#include "XInternal.h"

namespace vagt
{
    namespace encode
    {
        class XNamedHashMapImp : public XNamedHashMap, public XJsonable
        {
        public:
            XNamedHashMapImp(const XString& name,
                const XHashMap& hashMap);

            virtual json toJson() override;

            virtual void setName(const XString& name) override;
            virtual void setHashMap(const XHashMap& hashMap) override;

        private:
            //required
            XString name_;
            XHashMap hashMap_;

            std::map<std::string, XCommonValue> comVals_;
        };
    }
}