mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-09 02:15:32 +00:00
34 lines
803 B
C++
34 lines
803 B
C++
/*
|
|
Copyright: © 2018 SIL International.
|
|
Description: Internal context class and adaptor class for the API.
|
|
Create Date: 2 Oct 2018
|
|
Authors: Tim Eves (TSE)
|
|
History: 2 Oct 2018 - TSE - Refactored out of km_kbp_context_api.cpp
|
|
*/
|
|
|
|
#pragma once
|
|
#include <list>
|
|
#include <vector>
|
|
#include <keyman/keyboardprocessor.h>
|
|
|
|
// Forward declarations
|
|
class json;
|
|
|
|
namespace km {
|
|
namespace kbp
|
|
{
|
|
|
|
// This will likely be replaced with a class implementing a more space
|
|
// efficient data structure such as a ring buffer or bounded queue.
|
|
using context = std::list<km_kbp_context_item>;
|
|
|
|
} // namespace kbp
|
|
} // namespace km
|
|
|
|
json & operator << (json &, km::kbp::context const &);
|
|
json & operator << (json &, km_kbp_context_item const &);
|
|
|
|
|
|
struct km_kbp_context : public km::kbp::context
|
|
{
|
|
};
|