1 // =============================================================================
2 // PROJECT CHRONO - http://projectchrono.org
3 //
4 // Copyright (c) 2014 projectchrono.org
5 // All rights reserved.
6 //
7 // Use of this source code is governed by a BSD-style license that can be found
8 // in the LICENSE file at the top level of the distribution and at
9 // http://projectchrono.org/license-chrono.txt.
10 //
11 // =============================================================================
12 // Authors: Radu Serban
13 // =============================================================================
14 //
15 // Hitch chassis connector model constructed with data from file (JSON format).
16 //
17 // =============================================================================
18 #ifndef CHASSIS_CONNECTOR_HITCH_H
19 #define CHASSIS_CONNECTOR_HITCH_H
20 
21 #include "chrono_vehicle/ChApiVehicle.h"
22 #include "chrono_vehicle/chassis/ChChassisConnectorHitch.h"
23 
24 #include "chrono_thirdparty/rapidjson/document.h"
25 
26 namespace chrono {
27 namespace vehicle {
28 
29 /// @addtogroup vehicle
30 /// @{
31 
32 /// Hitch chassis connector model constructed with data from file (JSON format).
33 class CH_VEHICLE_API ChassisConnectorHitch : public ChChassisConnectorHitch {
34   public:
35     ChassisConnectorHitch(const std::string& filename);
36     ChassisConnectorHitch(const rapidjson::Document& d);
~ChassisConnectorHitch()37     ~ChassisConnectorHitch() {}
38 
39   private:
40     virtual void Create(const rapidjson::Document& d) override;
41 };
42 
43 /// @} vehicle
44 
45 }  // end namespace vehicle
46 }  // end namespace chrono
47 
48 #endif
49