mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 07:12:28 +00:00
Move struct JSONHandler::Handlers to implementation file
This commit is contained in:
parent
62f00b6d9c
commit
75e74679c5
@ -4,6 +4,25 @@
|
|||||||
#include <qpdf/QTC.hh>
|
#include <qpdf/QTC.hh>
|
||||||
#include <qpdf/QUtil.hh>
|
#include <qpdf/QUtil.hh>
|
||||||
|
|
||||||
|
struct Handlers
|
||||||
|
{
|
||||||
|
Handlers() = default;
|
||||||
|
|
||||||
|
JSONHandler::json_handler_t any_handler{nullptr};
|
||||||
|
JSONHandler::void_handler_t null_handler{nullptr};
|
||||||
|
JSONHandler::string_handler_t string_handler{nullptr};
|
||||||
|
JSONHandler::string_handler_t number_handler{nullptr};
|
||||||
|
JSONHandler::bool_handler_t bool_handler{nullptr};
|
||||||
|
JSONHandler::json_handler_t dict_start_handler{nullptr};
|
||||||
|
JSONHandler::void_handler_t dict_end_handler{nullptr};
|
||||||
|
JSONHandler::json_handler_t array_start_handler{nullptr};
|
||||||
|
JSONHandler::void_handler_t array_end_handler{nullptr};
|
||||||
|
JSONHandler::void_handler_t final_handler{nullptr};
|
||||||
|
std::map<std::string, std::shared_ptr<JSONHandler>> dict_handlers;
|
||||||
|
std::shared_ptr<JSONHandler> fallback_dict_handler;
|
||||||
|
std::shared_ptr<JSONHandler> array_item_handler;
|
||||||
|
};
|
||||||
|
|
||||||
class JSONHandler::Members
|
class JSONHandler::Members
|
||||||
{
|
{
|
||||||
friend class JSONHandler;
|
friend class JSONHandler;
|
||||||
|
@ -53,24 +53,6 @@ class JSONHandler
|
|||||||
|
|
||||||
static void usage(std::string const& msg);
|
static void usage(std::string const& msg);
|
||||||
|
|
||||||
struct Handlers
|
|
||||||
{
|
|
||||||
Handlers() = default;
|
|
||||||
|
|
||||||
json_handler_t any_handler{nullptr};
|
|
||||||
void_handler_t null_handler{nullptr};
|
|
||||||
string_handler_t string_handler{nullptr};
|
|
||||||
string_handler_t number_handler{nullptr};
|
|
||||||
bool_handler_t bool_handler{nullptr};
|
|
||||||
json_handler_t dict_start_handler{nullptr};
|
|
||||||
void_handler_t dict_end_handler{nullptr};
|
|
||||||
json_handler_t array_start_handler{nullptr};
|
|
||||||
void_handler_t array_end_handler{nullptr};
|
|
||||||
void_handler_t final_handler{nullptr};
|
|
||||||
std::map<std::string, std::shared_ptr<JSONHandler>> dict_handlers;
|
|
||||||
std::shared_ptr<JSONHandler> fallback_dict_handler;
|
|
||||||
std::shared_ptr<JSONHandler> array_item_handler;
|
|
||||||
};
|
|
||||||
|
|
||||||
class Members;
|
class Members;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user