Template Class with_rest_api_mixin

Class Documentation

template<typename TimeStepType>
class with_rest_api_mixin

class synchronized_env_mixin

Public Types

typedef TimeStepType time_step_type

Public Functions

with_rest_api_mixin(const std::string &api_url, const std::string &resource_path)

Constructor.

with_rest_api_mixin(const with_rest_api_mixin &other)

Copy ctor.

virtual ~with_rest_api_mixin() = default

destructor

virtual time_step_type create_time_step_from_response_(const http::Response &response) const = 0

build the time step from the server response

virtual bool is_alive() const = 0

Query the environment server is the environment has been created.

inline std::string get_url() const noexcept

Returns the url the environment is using.

inline std::string get_api_url() const noexcept

Returns the url the environment is using.

inline std::string get_resource_path() const noexcept

The resource path.