blob: 48093b638ad65abb6a24e5fa7bcabf1e021d0edf (
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
33
|
// Copyright (c) 2014 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VEHICLE_VEHICLE_INSTANCE_H_
#define VEHICLE_VEHICLE_INSTANCE_H_
#include <string>
#include <picojson.h>
#include "common/extension.h"
#include "vehicle.h"
class VehicleInstance : public common::Instance {
public:
VehicleInstance();
virtual ~VehicleInstance() {}
private:
// common::Instance implementation.
virtual void HandleMessage(const char* msg);
virtual void HandleSyncMessage(const char* msg);
int ZoneToAMBZone(picojson::array);
void PostError(double callback_id, const std::string& method,
const std::string& error);
Vehicle* vehicle_;
};
#endif // VEHICLE_VEHICLE_INSTANCE_H_
|