AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Functions
main.cpp File Reference
#include "SampleApp/ConsoleReader.h"
#include "SampleApp/SampleApplication.h"
#include "SampleApp/SampleApplicationReturnCodes.h"
#include <cstdlib>
#include <string>
Include dependency graph for main.cpp:

Functions

bool usesOptStyleArgs (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

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.

Parameters
argcThe number of elements in the argv array.
argvAn array of argc elements, containing the program name and all command-line arguments.
Returns
EXIT_FAILURE if the program failed to initialize correctly, else EXIT_SUCCESS.

◆ usesOptStyleArgs()

bool usesOptStyleArgs ( int  argc,
char *  argv[] 
)

Function that evaluates if the SampleApp invocation uses old-style or new-style opt-arg style invocation.

Parameters
argcThe number of elements in the argv array.
argvAn array of argc elements, containing the program name and all command-line arguments.
Returns
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