diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-01-09 14:01:51 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-01-09 14:01:51 -0500 |
| commit | 46b7119fab32b05923dbf9cda7cd6ce62f572846 (patch) | |
| tree | 31ac6c281869085e5dbc6b210886c554d4c52cad /generator/mood.h | |
| download | cadence-46b7119fab32b05923dbf9cda7cd6ce62f572846.tar.gz cadence-46b7119fab32b05923dbf9cda7cd6ce62f572846.tar.bz2 cadence-46b7119fab32b05923dbf9cda7cd6ce62f572846.zip | |
Initial commit
Diffstat (limited to 'generator/mood.h')
| -rw-r--r-- | generator/mood.h | 60 |
1 files changed, 60 insertions, 0 deletions
| 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 @@ | |||
| 1 | #ifndef MOOD_H_B9A39F40 | ||
| 2 | #define MOOD_H_B9A39F40 | ||
| 3 | |||
| 4 | #include <string> | ||
| 5 | |||
| 6 | namespace cadence { | ||
| 7 | namespace generator { | ||
| 8 | |||
| 9 | class mood { | ||
| 10 | public: | ||
| 11 | enum class type { | ||
| 12 | danceable, | ||
| 13 | acoustic, | ||
| 14 | aggressive, | ||
| 15 | electronic, | ||
| 16 | happy, | ||
| 17 | party, | ||
| 18 | relaxed, | ||
| 19 | sad, | ||
| 20 | instrumental | ||
| 21 | }; | ||
| 22 | |||
| 23 | // Constructor | ||
| 24 | |||
| 25 | mood(type t, double prob); | ||
| 26 | |||
| 27 | // Accessors | ||
| 28 | |||
| 29 | type getType() const | ||
| 30 | { | ||
| 31 | return type_; | ||
| 32 | } | ||
| 33 | |||
| 34 | double getProbability() const | ||
| 35 | { | ||
| 36 | return probability_; | ||
| 37 | } | ||
| 38 | |||
| 39 | bool getPositive() const | ||
| 40 | { | ||
| 41 | return positive_; | ||
| 42 | } | ||
| 43 | |||
| 44 | std::string getCategory() const | ||
| 45 | { | ||
| 46 | return category_; | ||
| 47 | } | ||
| 48 | |||
| 49 | private: | ||
| 50 | type type_; | ||
| 51 | double probability_; | ||
| 52 | bool positive_; | ||
| 53 | std::string category_; | ||
| 54 | |||
| 55 | }; | ||
| 56 | |||
| 57 | }; | ||
| 58 | }; | ||
| 59 | |||
| 60 | #endif /* end of include guard: MOOD_H_B9A39F40 */ | ||
