From 46b7119fab32b05923dbf9cda7cd6ce62f572846 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 9 Jan 2017 14:01:51 -0500 Subject: Initial commit --- generator/mood.h | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 generator/mood.h (limited to 'generator/mood.h') diff --git a/generator/mood.h b/generator/mood.h new file mode 100644 index 0000000..df5d28f --- /dev/null +++ b/generator/mood.h @@ -0,0 +1,60 @@ +#ifndef MOOD_H_B9A39F40 +#define MOOD_H_B9A39F40 + +#include + +namespace cadence { + namespace generator { + + class mood { + public: + enum class type { + danceable, + acoustic, + aggressive, + electronic, + happy, + party, + relaxed, + sad, + instrumental + }; + + // Constructor + + mood(type t, double prob); + + // Accessors + + type getType() const + { + return type_; + } + + double getProbability() const + { + return probability_; + } + + bool getPositive() const + { + return positive_; + } + + std::string getCategory() const + { + return category_; + } + + private: + type type_; + double probability_; + bool positive_; + std::string category_; + + }; + + }; +}; + +#endif /* end of include guard: MOOD_H_B9A39F40 */ -- cgit 1.4.1