#ifndef HTTP_SESSION_H #define HTTP_SESSION_H #include "core/string.h" #include "core/object.h" #include "core/reference.h" #include #include class HTTPSession : public Object { RCPP_OBJECT(HTTPSession, Object); public: void add_object(const String &key, Object *obj); void remove_object(const String &key); Object *get_object(const String &key); void add_reference(const String &key, const Ref &ref); void remove_reference(const String &key); Ref get_reference(const String &key); void add_int(const String &key, const int val); void remove_int(const String &key); int get_int(const String &key); String session_id; int id; void clear(); void reset(); std::map get_int_data(); HTTPSession(); ~HTTPSession(); protected: std::mutex _mutex; //todo make something similar to godot's variant. (Or get godot's variant lol) std::map _data; std::map > _reference_data; std::map _int_data; }; #endif