C++ SDK for MANUS Core 2.0
Loading...
Searching...
No Matches
Main.cpp
Go to the documentation of this file.
1// Set up a Doxygen group.
6#include "SDKClient.hpp"
7
19int main(int argc, char* argv[])
20{
21 ClientReturnCode t_Result;
22 SDKClient t_SDKClient;
23
24 t_Result = t_SDKClient.Initialize();
25
27 {
28 t_SDKClient.ShutDown();
29 return static_cast<int>(t_Result); // Returning initialise failure state
30 }
31
32 t_Result = t_SDKClient.Run();
34 {
35 t_SDKClient.ShutDown();
36 return static_cast<int>(t_Result); // Returning run failure state
37 }
38
39 t_Result = t_SDKClient.ShutDown();
40 return static_cast<int>(t_Result);
41}
42
43// Close the Doxygen group.
int main()
ClientReturnCode ShutDown()
When you are done with the SDK, don't forget to nicely shut it down this will close all connections t...
Definition: SDKClient.cpp:152
ClientReturnCode Run()
The main SDKClient loop. This is a simple state machine which switches between different substates.
Definition: SDKClient.cpp:62
ClientReturnCode Initialize()
Initialize the sample console and the SDK. This function attempts to resize the console window and th...
Definition: SDKClient.cpp:34
ClientReturnCode
Values that can be returned by this application.
Definition: SDKClient.hpp:47