luna-sysmgr-common
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NyxSensorCommonTypes.h
Go to the documentation of this file.
1 
17 #ifndef _NyxSensorCommonTypes_h
18 #define _NyxSensorCommonTypes_h
19 
21 class SensorNames {
22 public:
23  static const char* strAccelerometer() { return "accelerometer"; }
24  static const char* strOrientation() { return "orientation"; }
25  static const char* strShake() { return "shake"; }
26  static const char* strALS() { return "als"; }
27  static const char* strAngularVelocity() { return "angularVelocity"; }
28  static const char* strBearing() { return "bearing"; }
29  static const char* strGravity() { return "gravity"; }
30  static const char* strLinearAcceleration() { return "linearAcceleration"; }
31  static const char* strMagneticField() { return "magneticField"; }
32  static const char* strScreenProximity() { return "screenProximity"; }
33  static const char* strRotation() { return "rotation"; }
34  static const char* strLogicalDeviceMotion() { return "logicalDeviceMotion"; }
35  static const char* strLogicalDeviceOrientation() { return "logicalDeviceOrientation"; }
36 };
37 
42 public:
43  static const char* strW() { return "w"; }
44  static const char* strX() { return "x"; }
45  static const char* strY() { return "y"; }
46  static const char* strZ() { return "z"; }
47  static const char* strRawX() { return "rowX"; }
48  static const char* strRawY() { return "rowY"; }
49  static const char* strRawZ() { return "rowZ"; }
50  static const char* strWorldX() { return "worldX"; }
51  static const char* strWorldY() { return "worldY"; }
52  static const char* strWorldZ() { return "worldX"; }
53  static const char* strPosition() { return "position"; }
54  static const char* strShakeState() { return "shakeState"; }
55  static const char* strShakeMagnitude() { return "shakeMagnitude"; }
56  static const char* strShakeStart() { return "Start"; }
57  static const char* strShaking() { return "Shaking"; }
58  static const char* strShakeEnd() { return "End"; }
59  static const char* strRotationMatrix() { return "rotationMatrix"; }
60  static const char* strQuaternionVector() { return "quaternionVector"; }
61  static const char* strEulerAngle() { return "eulerAngle"; }
62  static const char* strRoll() { return "roll"; }
63  static const char* strPitch() { return "pitch"; }
64  static const char* strYaw() { return "yaw"; }
65  static const char* strLightIntensity() { return "lightIntensity"; }
66  static const char* strMagnetic() { return "magnetic"; }
67  static const char* strTrueBearing() { return "trueBearing"; }
68  static const char* strConfidence() { return "confidence"; }
69  static const char* strOrientationFaceUp() { return "Face Up"; }
70  static const char* strOrientationFaceDown() { return "Face Down"; }
71  static const char* strOrientationFaceForward() { return "Face Forward"; }
72  static const char* strOrientationFaceBack() { return "Face Back"; }
73  static const char* strOrientationLeft() { return "Left"; }
74  static const char* strOrientationRight() { return "Right"; }
75  static const char* strEmpty() { return ""; }
76 };
77 
78 
79 #endif // _NyxSensorCommonTypes_h