terminal/src/host/IIoProvider.hpp

30 lines
644 B
C++

/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- IIoProvider.hpp
Abstract:
- Provides an abstraction for acquiring the active input and output objects of
the console.
Author(s):
- Mike Griese (migrie) 11 Oct 2017
--*/
#pragma once
class SCREEN_INFORMATION;
class InputBuffer;
namespace Microsoft::Console
{
class IIoProvider
{
public:
virtual SCREEN_INFORMATION& GetActiveOutputBuffer() = 0;
virtual const SCREEN_INFORMATION& GetActiveOutputBuffer() const = 0;
virtual InputBuffer* const GetActiveInputBuffer() const = 0;
};
}