![]() |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include "SampleApp/ConsoleReader.h"#include "SampleApp/SampleApplication.h"#include "SampleApp/SampleApplicationReturnCodes.h"#include <cstdlib>#include <string>
Functions | |
| bool | usesOptStyleArgs (int argc, char *argv[]) |
| int | main (int argc, char *argv[]) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
This serves as the starting point for the application. This code instantiates the UserInputManager and processes user input until the run() function returns.
| argc | The number of elements in the argv array. |
| argv | An array of argc elements, containing the program name and all command-line arguments. |
EXIT_FAILURE if the program failed to initialize correctly, else EXIT_SUCCESS. | bool usesOptStyleArgs | ( | int | argc, |
| char * | argv[] | ||
| ) |
Function that evaluates if the SampleApp invocation uses old-style or new-style opt-arg style invocation.
| argc | The number of elements in the argv array. |
| argv | An array of argc elements, containing the program name and all command-line arguments. |
true of the invocation uses optarg style argument false otherwise. AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0