Tezzeret  1
Tezzeret
GmApp.hpp
1 /*
2  * GmApp.hpp
3  *
4  * Created on: May 11, 2016
5  * Author: rcram
6  */
7 
8 #ifndef GMAPP_HPP_
9 #define GMAPP_HPP_
10 
11 #include "geotypes.hpp"
12 
13 #define MAX_APPLICATION_NAME_LN 52
14 #define MAX_APPLICATION_VERSION_STRING_LN 19
15 #define MAX_APPLICATION_MACHINE_SERIAL_NUMBER_STRING_LN 16
16 
17 #define GM_APP_OK 0
18 #define GM_APP_FILE_STORAGE_ERROR 1
19 #define GM_APP_FAIL -1
20 
21 namespace Geometrics
22 {
23 
24  // This is the base Geometrics application object on the TI RTOS
25  // This may change.
26  //
28  {
29  public:
30  GmEmbeddedApp ();
31  static char* GetApplicationName ();
32  static char s_ApplicationName[MAX_APPLICATION_NAME_LN + 1];
33  static char s_ApplicationVersionString[MAX_APPLICATION_VERSION_STRING_LN + 1];
34  static char s_MachineSerialNumber[MAX_APPLICATION_MACHINE_SERIAL_NUMBER_STRING_LN + 1];
35  static Bool GetApplicationShortName(char *buffer, int bufferSize);
36  static Bool GetApplicationLongName(char *buffer, int bufferSize);
37  static Bool GetApplicationVersionString(char *buffer, int bufferSize);
38  static Bool GetMachineSerialNumber (char *buffer, int bufferSize);
39  static Bool CompareVersionStrings(char *nameOne, char *nameTwo);
40  };
41 
42 }
43 
44 
45 #endif /* GMAPP_HPP_ */
Definition: GmApp.hpp:28
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47