diff options
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/bounding_box.h | 88 | ||||
| -rw-r--r-- | src/direct_message.cpp | 10 | ||||
| -rw-r--r-- | src/direct_message.h | 17 | ||||
| -rw-r--r-- | src/list.cpp | 10 | ||||
| -rw-r--r-- | src/list.h | 18 | ||||
| -rw-r--r-- | src/twitter.h | 6 |
7 files changed, 2 insertions, 149 deletions
| diff --git a/CMakeLists.txt b/CMakeLists.txt index 74b6977..bdca0f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -16,8 +16,6 @@ add_library(twitter++ | |||
| 16 | src/timeline.cpp | 16 | src/timeline.cpp |
| 17 | src/tweet.cpp | 17 | src/tweet.cpp |
| 18 | src/codes.cpp | 18 | src/codes.cpp |
| 19 | src/direct_message.cpp | ||
| 20 | src/list.cpp | ||
| 21 | src/user.cpp | 19 | src/user.cpp |
| 22 | src/configuration.cpp | 20 | src/configuration.cpp |
| 23 | src/util.cpp) | 21 | src/util.cpp) |
| diff --git a/src/bounding_box.h b/src/bounding_box.h deleted file mode 100644 index 25c7790..0000000 --- a/src/bounding_box.h +++ /dev/null | |||
| @@ -1,88 +0,0 @@ | |||
| 1 | #ifndef BOUNDING_BOX_H_75D2077D | ||
| 2 | #define BOUNDING_BOX_H_75D2077D | ||
| 3 | |||
| 4 | namespace twitter { | ||
| 5 | |||
| 6 | class coordinate { | ||
| 7 | public: | ||
| 8 | |||
| 9 | coordinate(int degrees, int minutes = 0, int seconds = 0) : | ||
| 10 | _degrees(degrees), | ||
| 11 | _minutes(minutes), | ||
| 12 | _seconds(seconds) | ||
| 13 | { | ||
| 14 | } | ||
| 15 | |||
| 16 | int getDegrees() const | ||
| 17 | { | ||
| 18 | return _degrees; | ||
| 19 | } | ||
| 20 | |||
| 21 | int getMinutes() const | ||
| 22 | { | ||
| 23 | return _minutes; | ||
| 24 | } | ||
| 25 | |||
| 26 | int getSeconds() const | ||
| 27 | { | ||
| 28 | return _seconds; | ||
| 29 | } | ||
| 30 | |||
| 31 | operator double() const | ||
| 32 | { | ||
| 33 | return (double)_degrees + ((double)_minutes / (double)60) + ((double)_seconds / (double)3600); | ||
| 34 | } | ||
| 35 | |||
| 36 | private: | ||
| 37 | |||
| 38 | int _degrees; | ||
| 39 | int _minutes; | ||
| 40 | int _seconds; | ||
| 41 | }; | ||
| 42 | |||
| 43 | class bounding_box { | ||
| 44 | public: | ||
| 45 | |||
| 46 | bounding_box( | ||
| 47 | coordinate south_west_long, | ||
| 48 | coordinate south_west_lat, | ||
| 49 | coordinate north_east_long, | ||
| 50 | coordinate north_east_lat) : | ||
| 51 | _south_west_long(south_west_long), | ||
| 52 | _south_west_lat(south_west_lat), | ||
| 53 | _north_east_long(north_east_long), | ||
| 54 | _north_east_lat(north_east_lat) | ||
| 55 | { | ||
| 56 | } | ||
| 57 | |||
| 58 | const coordinate& getSouthWestLongitude() const | ||
| 59 | { | ||
| 60 | return _south_west_long; | ||
| 61 | } | ||
| 62 | |||
| 63 | const coordinate& getSouthWestLatitude() const | ||
| 64 | { | ||
| 65 | return _south_west_lat; | ||
| 66 | } | ||
| 67 | |||
| 68 | const coordinate& getNorthEastLongitude() const | ||
| 69 | { | ||
| 70 | return _north_east_long; | ||
| 71 | } | ||
| 72 | |||
| 73 | const coordinate& getNorthEastLatitude() const | ||
| 74 | { | ||
| 75 | return _north_east_lat; | ||
| 76 | } | ||
| 77 | |||
| 78 | private: | ||
| 79 | |||
| 80 | coordinate _south_west_long; | ||
| 81 | coordinate _south_west_lat; | ||
| 82 | coordinate _north_east_long; | ||
| 83 | coordinate _north_east_lat; | ||
| 84 | }; | ||
| 85 | |||
| 86 | } | ||
| 87 | |||
| 88 | #endif /* end of include guard: BOUNDING_BOX_H_75D2077D */ | ||
| diff --git a/src/direct_message.cpp b/src/direct_message.cpp deleted file mode 100644 index d5b6f36..0000000 --- a/src/direct_message.cpp +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | #include "direct_message.h" | ||
| 2 | |||
| 3 | namespace twitter { | ||
| 4 | |||
| 5 | direct_message::direct_message(std::string data) | ||
| 6 | { | ||
| 7 | |||
| 8 | } | ||
| 9 | |||
| 10 | }; | ||
| diff --git a/src/direct_message.h b/src/direct_message.h deleted file mode 100644 index 46a66dc..0000000 --- a/src/direct_message.h +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | #ifndef DIRECT_MESSAGE_H_2B2AE3F8 | ||
| 2 | #define DIRECT_MESSAGE_H_2B2AE3F8 | ||
| 3 | |||
| 4 | #include <string> | ||
| 5 | |||
| 6 | namespace twitter { | ||
| 7 | |||
| 8 | class direct_message { | ||
| 9 | public: | ||
| 10 | |||
| 11 | direct_message() {} | ||
| 12 | explicit direct_message(std::string data); | ||
| 13 | }; | ||
| 14 | |||
| 15 | }; | ||
| 16 | |||
| 17 | #endif /* end of include guard: DIRECT_MESSAGE_H_2B2AE3F8 */ | ||
| diff --git a/src/list.cpp b/src/list.cpp deleted file mode 100644 index d2b61cc..0000000 --- a/src/list.cpp +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | #include "list.h" | ||
| 2 | |||
| 3 | namespace twitter { | ||
| 4 | |||
| 5 | list::list(std::string data) | ||
| 6 | { | ||
| 7 | |||
| 8 | } | ||
| 9 | |||
| 10 | }; | ||
| diff --git a/src/list.h b/src/list.h deleted file mode 100644 index 1bf034f..0000000 --- a/src/list.h +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | #ifndef LIST_H_D7DEA7D8 | ||
| 2 | #define LIST_H_D7DEA7D8 | ||
| 3 | |||
| 4 | #include <string> | ||
| 5 | |||
| 6 | namespace twitter { | ||
| 7 | |||
| 8 | class list { | ||
| 9 | public: | ||
| 10 | |||
| 11 | list() {} | ||
| 12 | explicit list(std::string data); | ||
| 13 | |||
| 14 | }; | ||
| 15 | |||
| 16 | }; | ||
| 17 | |||
| 18 | #endif /* end of include guard: LIST_H_D7DEA7D8 */ | ||
| diff --git a/src/twitter.h b/src/twitter.h index 382cdce..f8b23d0 100644 --- a/src/twitter.h +++ b/src/twitter.h | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | #define TWITTER_H_AC7A7666 | 2 | #define TWITTER_H_AC7A7666 |
| 3 | 3 | ||
| 4 | namespace twitter { | 4 | namespace twitter { |
| 5 | 5 | ||
| 6 | class tweet; | 6 | class tweet; |
| 7 | 7 | ||
| 8 | }; | 8 | }; |
| 9 | 9 | ||
| 10 | #include "codes.h" | 10 | #include "codes.h" |
| @@ -14,8 +14,6 @@ namespace twitter { | |||
| 14 | #include "timeline.h" | 14 | #include "timeline.h" |
| 15 | #include "tweet.h" | 15 | #include "tweet.h" |
| 16 | #include "user.h" | 16 | #include "user.h" |
| 17 | #include "list.h" | ||
| 18 | #include "direct_message.h" | ||
| 19 | #include "configuration.h" | 17 | #include "configuration.h" |
| 20 | 18 | ||
| 21 | #endif /* end of include guard: TWITTER_H_AC7A7666 */ | 19 | #endif /* end of include guard: TWITTER_H_AC7A7666 */ |
