JSON file in mbed.
Dependencies: MbedJSONValue mbed SDFileSystem
mission.h
- Committer:
- AlexVC97
- Date:
- 2017-03-29
- Revision:
- 4:54fdacd71dc9
- Parent:
- 2:e6a095fc2274
File content as of revision 4:54fdacd71dc9:
#pragma once #include <iostream> #include "MbedJSONValue.h" namespace VivesCityGame { class Mission { // declarations private: 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(); }; };