-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTwitterData.hpp
More file actions
30 lines (24 loc) · 1006 Bytes
/
TwitterData.hpp
File metadata and controls
30 lines (24 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef TWITTER_DATA_H
#define TWITTER_DATA_H
#include <iostream>
#include <string>
class TwitterData
{
public:
std::string getUserName() const; // we do want to return a copy of the string, not the pointer
std::string getActualName() const; // we do want to return a copy of the string, not the pointer
std::string getEmail() const; // we do want to return a copy of the string, not the pointer
std::string getCategory() const; // we do want to return a copy of the string, not the pointer
int getNumTweets() const; // we do want to return a copy of the integer, not the pointer
void setUserName(const std::string &newUserName);
void setActualName(const std::string &newActualName);
void setEmail(const std::string &newEmail);
void setCategory(const std::string &newCategory);
void setNumTweets(const int &newNumTweets);
std::string print() const;
private:
std::string mpUserName, mpActualName,
mpEmail, mpCategory;
int mpNumTweets;
};
#endif