31 std::string id, title, author, subreddit, url, text;
32 int score, comment_count, post_time;
109 return comment_count;
An object to represent a Reddit post, used along with the Reddit data source.
Definition: Reddit.h:28
std::string getTitle() const
Definition: Reddit.h:56
void setURL(std::string u)
Definition: Reddit.h:154
int getCommentCount() const
number of comments of the reddit post
Definition: Reddit.h:108
std::string getURL() const
URL associated with the post.
Definition: Reddit.h:150
void setAuthor(string auth)
Definition: Reddit.h:73
void setScore(int sc)
Definition: Reddit.h:86
std::string getID() const
Definition: Reddit.h:43
std::string getText() const
returns the text of the reddit post.
Definition: Reddit.h:168
int getScore() const
Definition: Reddit.h:82
std::string getSubreddit() const
name of the subreddit the post appeared in
Definition: Reddit.h:121
void setSubreddit(std::string sr)
Definition: Reddit.h:125
float getVoteRatio() const
ratio of upvotes to downvotes of the reddit post
Definition: Reddit.h:95
void setPostTime(int pt)
Definition: Reddit.h:138
void setTitle(std::string titl)
Definition: Reddit.h:60
void setVoteRatio(float vr)
Definition: Reddit.h:99
int getPostTime() const
time the post was made (UNIX time)
Definition: Reddit.h:134
std::string getAuthor() const
Definition: Reddit.h:69
void setCommentCount(int cnt)
Definition: Reddit.h:112
void setText(std::string txt)
Definition: Reddit.h:172
void setID(std::string i)
Definition: Reddit.h:47
Support for drawing Bar charts.
Definition: alltypes.h:4