File Main.cpp
File List > api > cppSDK > SDKClient > Main.cpp
Go to the documentation of this file
// Set up a Doxygen group.
#include "SDKClient.hpp"
int main(int argc, char* argv[])
{
ClientReturnCode t_Result;
SDKClient t_SDKClient;
t_Result = t_SDKClient.Initialize();
if (t_Result != ClientReturnCode::ClientReturnCode_Success)
{
t_SDKClient.ShutDown();
return static_cast<int>(t_Result); // Returning initialise failure state
}
t_Result = t_SDKClient.Run();
if (t_Result != ClientReturnCode::ClientReturnCode_Success)
{
t_SDKClient.ShutDown();
return static_cast<int>(t_Result); // Returning run failure state
}
t_Result = t_SDKClient.ShutDown();
return static_cast<int>(t_Result);
}
// Close the Doxygen group.