派生自 development/c++

pansen
2019-03-15 c64a4f19a0a41b62917eb1dc8b0789c9ddf6baab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
#ifndef QIAOJIASYSTEM_VSSBASECONTROLLER_H
#define QIAOJIASYSTEM_VSSBASECONTROLLER_H
 
#include <libs/jsoncpp/include/jsoncpp/json/json.h>
 
class VssBaseController {
public:
    template <typename Iterable>
    Json::Value iterable2json(Iterable const& cont) {
        Json::Value v;
        for (auto&& element: cont) {
            v.append(element);
        }
        return v;
    }
};
 
 
#endif //QIAOJIASYSTEM_VSSBASECONTROLLER_H