32 lines
769 B
C++
32 lines
769 B
C++
#ifndef BUSINESS_H
|
|
#define BUSINESS_H
|
|
|
|
#include <string>
|
|
|
|
class Business {
|
|
public:
|
|
//constructs a Business by parsing a JSON-formatted line
|
|
Business(const std::string &jsonLine);
|
|
//Accessors
|
|
std::string getName() const;
|
|
std::string getCategories() const;
|
|
double getRating() const;
|
|
int getPrice() const;
|
|
int getReviewCount() const;
|
|
std::string getCity() const;
|
|
std::string getPostalCode() const;
|
|
//returns a string representation of the star rating
|
|
std::string getStarString() const;
|
|
|
|
private:
|
|
std::string name;
|
|
std::string categories;
|
|
double rating;
|
|
int price;
|
|
int review_count;
|
|
std::string city;
|
|
std::string postal_code;
|
|
};
|
|
|
|
#endif // BUSINESS_H
|