human.hpp
1 #ifndef NOOS_OBJECT_HUMAN
2 #define NOOS_OBJECT_HUMAN
3 /*
4  * LICENSE HERE
5  */
6 #include "includes.ihh"
7 namespace noos {
8 namespace object {
16 struct human
17 {
19  float top_left_x;
21  float top_left_y;
26 
28  human(const json::const_iterator & human_it);
29 
31  json::object_t to_json() const;
32 
34  bool operator==(const human & rhs) const;
35 
37  void up_left_point(const json::const_iterator & coord_it);
38 
40  void down_right_point(const json::const_iterator & coord_it);
41 };
42 }
43 }
44 #endif
human(const json::const_iterator &human_it)
Constructor using json for modern C++
float top_left_y
coordinate y of the top left corner
Definition: human.hpp:21
float bottom_right_y
coordinate y of the bottom right corner
Definition: human.hpp:25
json::object_t to_json() const
Definition: asio_handler.hpp:14
void down_right_point(const json::const_iterator &coord_it)
Method to find component down_right_point in json data.
float top_left_x
coordinate x of the top left corner
Definition: human.hpp:19
describes human coordinates
Definition: human.hpp:16
float bottom_right_x
coordinate x of the bottom right corner
Definition: human.hpp:23
bool operator==(const human &rhs) const
Equality operator.
void up_left_point(const json::const_iterator &coord_it)
Method to find component up_left_point in json data.