2 * Copyright (c) 2013 TOYOTA MOTOR CORPORATION.
4 * Contact: shibata@mac.tec.toyota.co.jp
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
24 #include <abstractpropertytype.h>
26 #include "abstractconfig.h"
30 * Table of vehicle information that is described in the configuration file.
33 struct VehicleInfoDefine {
35 std::string ambPropertyName;
38 std::string accessControl;
39 std::string defaultvalue;
40 std::string dbusPropertyName;
41 std::string dbusObjectName;
45 //undefine data structure;
50 //undefine data structure;
55 char KeyEventType[64];
56 std::vector<Status> status;
57 std::vector<Sense> sense;
58 std::vector<EventMask> event_mask;
60 std::string dbusInterface;
61 std::string dbusObject;
65 * Information Websocket port.
80 * Reading VehiclePlugin's config file.
82 class AMBConfig : public AbstractConfig {
95 * This function will return a table of vehicle information read from the configuration file.
97 * @return Vehicle information defined by the configuration file.(Failure NULL)
99 std::vector<VehicleInfoDefine>
100 getVehicleInfoConfig();
103 * This function returns the socket port used to Websocket.
109 parseJson(std::string config);
112 getType(char *type, int *size);
115 getZone(const std::string& zonestr);
117 std::vector<VehicleInfoDefine> vehicleinfoList;
120 #endif // AMBCONFIG_H_