GestureRecognitionToolkit  Version: 1.0 Revision: 04-03-15
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 namespace GRT{
51 
52 class GRTBase
53 {
54 public:
58  GRTBase(void);
59 
63  virtual ~GRTBase(void);
64 
72 
79  string getClassType() const;
80 
86  string getLastWarningMessage() const;
87 
93  string getLastErrorMessage() const;
94 
100  string getLastInfoMessage() const;
101 
109  static string getGRTVersion(bool returnRevision = true);
110 
116  static string getGRTRevison();
117 
123  GRTBase* getGRTBasePointer();
124 
130  const GRTBase* getGRTBasePointer() const;
131 
132 protected:
133  inline double SQR(const double &x) const{ return x*x; }
134 
135  string classType;
136  DebugLog debugLog;
137  ErrorLog errorLog;
138  InfoLog infoLog;
139  TrainingLog trainingLog;
140  TestingLog testingLog;
141  WarningLog warningLog;
142 
143 };
144 
145 } //End of namespace GRT
146 
147 #endif //GRT_GRT_BASE_HEADER
148 
string getLastErrorMessage() const
Definition: GRTBase.cpp:54
GRTBase(void)
Definition: GRTBase.cpp:25
Definition: AdaBoost.cpp:25
static string getGRTVersion(bool returnRevision=true)
Definition: GRTBase.cpp:62
virtual ~GRTBase(void)
Definition: GRTBase.cpp:29
bool copyGRTBaseVariables(const GRTBase *GRTBase)
Definition: GRTBase.cpp:32
static string getGRTRevison()
Definition: GRTBase.cpp:68
string getClassType() const
Definition: GRTBase.cpp:72
GRTBase * getGRTBasePointer()
Definition: GRTBase.cpp:76
string getLastInfoMessage() const
Definition: GRTBase.cpp:58
string getLastWarningMessage() const
Definition: GRTBase.cpp:50