JSON file in mbed.
Dependencies: MbedJSONValue SDFileSystem mbed
Fork of City_Game_JSON by
mission.h
00001 #pragma once 00002 #include <iostream> 00003 #include "MbedJSONValue.h" 00004 00005 namespace VivesCityGame 00006 { 00007 class Mission 00008 { 00009 // declarations 00010 //private: //commented here by IC 00011 public: 00012 std::string type; 00013 int id; 00014 std::string message; 00015 std::string hint; 00016 bool deadline; 00017 int deadlineTime; 00018 double latitude; 00019 double longitude; 00020 int radius; 00021 00022 // getters 00023 public: 00024 std::string get_type(); 00025 int get_id(); 00026 std::string get_message(); 00027 std::string get_hint(); 00028 bool get_deadline(); 00029 int get_deadlineTime(); 00030 double get_latitude(); 00031 double get_longitude(); 00032 int get_radius(); 00033 00034 // method from_json 00035 public: 00036 void from_json(MbedJSONValue& json); 00037 00038 // method to_string 00039 public: 00040 std::string to_string(); 00041 }; 00042 };
Generated on Thu Jul 14 2022 20:44:12 by 1.7.2