spiegel-keyman/keyboardprocessor/src/context.hpp
Tim Eves bb99d60d07 Implement json << operators for all the exportable types
These will be needed by the state_to_json API call.
2018-10-05 11:29:36 +07:00

32 lines
497 B
C++

#include <list>
#include <keyboardprocessor.h>
// Forward declarations
class json;
namespace km {
namespace kbp
{
class context : public std::list<km_kbp_context_item>
{
std::vector<value_type> mutable _pres;
public:
const_pointer data() const
{
_pres.assign(begin(), end());
return _pres.data();
}
};
}
}
json & operator << (json &, km::kbp::context const &);
json & operator << (json &, km_kbp_context_item const &);
struct km_kbp_context : public km::kbp::context {};