GestureRecognitionToolkit  Version: 0.1.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
GRTBase.h
Go to the documentation of this file.
1 
29 #ifndef GRT_GRT_BASE_HEADER
30 #define GRT_GRT_BASE_HEADER
31 
32 #include <iostream>
33 #include <vector>
34 #include <algorithm>
35 #include <fstream>
36 #include <sstream>
37 #include <string>
38 #include <float.h>
39 #include <cmath>
40 #include <time.h>
41 #include <map>
42 #include <limits>
43 #include <stdlib.h>
44 #include <stdio.h>
45 #include <stddef.h>
46 #include <cstddef>
47 
48 #include "../Util/GRTCommon.h"
49 
50 GRT_BEGIN_NAMESPACE
51 
52 class GRTBase
53 {
54 public:
58  GRTBase(void);
59 
63  virtual ~GRTBase(void);
64 
72 
79  std::string getClassType() const;
80 
86  std::string getLastWarningMessage() const;
87 
93  std::string getLastErrorMessage() const;
94 
100  std::string getLastInfoMessage() const;
101 
108  bool setInfoLoggingEnabled(const bool loggingEnabled);
109 
116  bool setWarningLoggingEnabled(const bool loggingEnabled);
117 
124  bool setErrorLoggingEnabled(const bool loggingEnabled);
125 
133  static std::string getGRTVersion(bool returnRevision = true);
134 
140  static std::string getGRTRevison();
141 
147  GRTBase* getGRTBasePointer();
148 
154  const GRTBase* getGRTBasePointer() const;
155 
156 protected:
157  inline Float SQR(const Float &x) const{ return x*x; }
158 
159  std::string classType;
160  DebugLog debugLog;
161  ErrorLog errorLog;
162  InfoLog infoLog;
163  TrainingLog trainingLog;
164  TestingLog testingLog;
165  WarningLog warningLog;
166 
167 };
168 
169 GRT_END_NAMESPACE
170 
171 #endif //GRT_GRT_BASE_HEADER
172 
GRTBase * getGRTBasePointer()
Definition: GRTBase.cpp:76
virtual ~GRTBase(void)
Definition: GRTBase.cpp:29
static std::string getGRTRevison()
Definition: GRTBase.cpp:68
bool setErrorLoggingEnabled(const bool loggingEnabled)
Definition: GRTBase.cpp:94
std::string getLastErrorMessage() const
Definition: GRTBase.cpp:54
std::string getLastWarningMessage() const
Definition: GRTBase.cpp:50
std::string getLastInfoMessage() const
Definition: GRTBase.cpp:58
bool setInfoLoggingEnabled(const bool loggingEnabled)
Definition: GRTBase.cpp:84
bool copyGRTBaseVariables(const GRTBase *GRTBase)
Definition: GRTBase.cpp:32
bool setWarningLoggingEnabled(const bool loggingEnabled)
Definition: GRTBase.cpp:89
static std::string getGRTVersion(bool returnRevision=true)
Definition: GRTBase.cpp:62
GRTBase(void)
Definition: GRTBase.cpp:25
std::string getClassType() const
Definition: GRTBase.cpp:72