-
Notifications
You must be signed in to change notification settings - Fork 313
Expand file tree
/
Copy pathConsoleUI.h
More file actions
33 lines (28 loc) · 948 Bytes
/
ConsoleUI.h
File metadata and controls
33 lines (28 loc) · 948 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE.md in the repo root for license information.
#pragma once
//
// Console UI Header
//
// User interface utilities for the Windows ML sample application.
// Provides clean console interaction patterns.
//
#include <vector>
#include "ExecutionProvider.h"
namespace CppAbiEPEnumerationSample
{
/// <summary>
/// Console UI utilities for the sample application
/// Handles user interaction and display formatting
/// </summary>
class ConsoleUI
{
public:
static void PrintHeader();
static void PrintProviders(const std::vector<ExecutionProvider>& providers);
static int GetUserSelection(int maxOptions);
static void PrintProgress(double progress);
static void PrintResult(bool success);
static void WaitForKeypress();
};
} // namespace CppAbiEPEnumerationSample