added current c++ code

This commit is contained in:
2016-01-02 17:40:22 +01:00
parent b58fb8f27b
commit 7ce2718306
11 changed files with 2611 additions and 454 deletions

25
workspace/pca/Settings.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef SETTINGS_H
#define SETTINGS_H
#include <string>
class Settings {
public:
std::string path = "/mnt/firma/kunden/HandyGames/daten";
std::vector<std::string> classNames = {"forwardbend", "jumpingjack", "kneebend", "pushups", "situps"};
static int classToInt(const std::string className) {
if ("forwardbend" == className) {return 0;}
if ("jumpingjack" == className) {return 1;}
if ("kneebend" == className) {return 2;}
if ("pushups" == className) {return 3;}
if ("situps" == className) {return 4;}
throw "error";
}
};
#endif // SETTINGS_H