APIs, concepts, guides, and more

◆ PrintFooter()

void PrintFooter ( std::string sampleAppName,
int exitCode )

Print a message to indicate the sample app has finished and if it was successful or not.

Parameters
sampleAppNameThe name of the sample application to print in the footer.
exitCodeThe exit code of the sample application.
Code Snippet
void PrintFooter(std::string sampleAppName, int exitCode)
{
std::cout << "\n----------------------------------------------------------------------------------------------------\n";
if (exitCode == 0)
{
std::cout << sampleAppName << " Sample App Completed Successfully\n";
}
else
{
std::cout << sampleAppName << " Sample App Failed with Exit Code: " << exitCode << "\n";
}
std::cout << "----------------------------------------------------------------------------------------------------\n" << std::endl;
}
[PrintFooter]
Examples
axis-configuration.cpp, calculate-acceleration-from-velocity.cpp, difference-of-position-user-limit.cpp, hello-rttasks.cpp, helpers.h, phantom-axis.cpp, point-to-point.cpp, print-network-topology.cpp, print-rttasks-summary.cpp, random-walk.cpp, record-performance.cpp, and starter-template.cpp.

Definition at line 162 of file helpers.h.