2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-10-31 19:02:30 +00:00
qpdf/libqpdf/QPDF_json.cc

72 lines
1.0 KiB
C++
Raw Normal View History

#include <qpdf/QPDF.hh>
#include <qpdf/FileInputSource.hh>
2022-05-14 12:49:42 +00:00
void
QPDF::JSONReactor::dictionaryStart()
{
// QXXXXQ
}
void
QPDF::JSONReactor::arrayStart()
{
// QXXXXQ
}
void
QPDF::JSONReactor::containerEnd(JSON const& value)
{
// QXXXXQ
}
void
QPDF::JSONReactor::topLevelScalar()
{
// QXXXXQ
}
bool
QPDF::JSONReactor::dictionaryItem(std::string const& key, JSON const& value)
{
// QXXXXQ
return true;
}
bool
QPDF::JSONReactor::arrayItem(JSON const& value)
{
// QXXXXQ
return true;
}
void
QPDF::createFromJSON(std::string const& json_file)
{
createFromJSON(std::make_shared<FileInputSource>(json_file.c_str()));
}
void
2022-05-14 12:49:42 +00:00
QPDF::createFromJSON(std::shared_ptr<InputSource> is)
{
2022-05-14 12:49:42 +00:00
importJSON(is, true);
}
void
QPDF::updateFromJSON(std::string const& json_file)
{
updateFromJSON(std::make_shared<FileInputSource>(json_file.c_str()));
}
void
2022-05-14 12:49:42 +00:00
QPDF::updateFromJSON(std::shared_ptr<InputSource> is)
{
importJSON(is, false);
}
void
QPDF::importJSON(std::shared_ptr<InputSource>, bool must_be_complete)
{
// QXXXQ
}