2 * Copyright (C) 2012 TOYOTA MOTOR CORPORATION.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 * Table of vehicle information that is described in the configuration file.
29 struct VehicleInfoDefine {
31 std::string ambPropertyName;
33 INT, DOUBLE, CHAR, INT16, UINT16, UINT32, INT64, UINT64, BOOL, NONE
36 std::string accessControl;
37 std::string defaultvalue;
38 std::string dbusPropertyName;
41 //undefine data structure;
46 //undefine data structure;
51 char KeyEventType[64];
52 std::vector<Status> status;
53 std::vector<Sense> sense;
54 std::vector<EventMask> event_mask;
56 std::string dbusInterface;
57 std::string dbusObject;
61 * Information Websocket port.
76 * This class handles the data in the configuration file.
89 * Read configuration file.
91 * @param confpath Path to the configuration file.
94 readConfig(std::string confpath);
96 * This function will return a table of vehicle information read from the configuration file.
98 * @return Vehicle information defined by the configuration file.(Failure NULL)
100 std::vector<VehicleInfoDefine>
101 getVehicleInfoConfig();
103 * This function returns the socket port used to Websocket.
109 parseJson(std::string config);
111 std::string filename;
114 VehicleInfoDefine::Status::DataType
115 getType(char *type, int *size);
117 std::vector<VehicleInfoDefine> vehicleinfoList;
120 #endif // #ifndef CONFIG_H