JSON file in mbed.
Dependencies: MbedJSONValue SDFileSystem mbed
Fork of City_Game_JSON by
mission.h
- Committer:
- ajeet3004
- Date:
- 2017-11-27
- Revision:
- 5:eedf89829452
- Parent:
- 2:e6a095fc2274
File content as of revision 5:eedf89829452:
#pragma once #include <iostream> #include "MbedJSONValue.h" namespace VivesCityGame { class Mission { // declarations //private: //commented here by IC public: std::string type; int id; std::string message; std::string hint; bool deadline; int deadlineTime; double latitude; double longitude; int radius; // getters public: std::string get_type(); int get_id(); std::string get_message(); std::string get_hint(); bool get_deadline(); int get_deadlineTime(); double get_latitude(); double get_longitude(); int get_radius(); // method from_json public: void from_json(MbedJSONValue& json); // method to_string public: std::string to_string(); }; };