-
Notifications
You must be signed in to change notification settings - Fork 313
Expand file tree
/
Copy pathApplication.h
More file actions
34 lines (28 loc) · 992 Bytes
/
Application.h
File metadata and controls
34 lines (28 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE.md in the repo root for license information.
#pragma once
//
// Application Header
//
// Main application logic for the Windows ML ABI sample.
// Orchestrates the interaction between providers, catalog, and user interface.
//
#include "ExecutionProviderCatalog.h"
#include "ExecutionProvider.h"
namespace CppAbiEPEnumerationSample
{
/// <summary>
/// Main application class that orchestrates the sample functionality
/// Handles the application lifecycle and user interaction flow
/// </summary>
class Application
{
public:
void Run();
private:
void RunInteractiveSession();
void ProcessProviderSelection(const ExecutionProvider& provider);
void PrepareProvider(const ExecutionProvider& provider);
void TryRegisterProvider(const ExecutionProvider& provider);
};
} // namespace CppAbiEPEnumerationSample