aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDFValue.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/qpdf/QPDFValue.hh')
-rw-r--r--libqpdf/qpdf/QPDFValue.hh25
1 files changed, 13 insertions, 12 deletions
diff --git a/libqpdf/qpdf/QPDFValue.hh b/libqpdf/qpdf/QPDFValue.hh
index 2e0c5e8d..9a1a6df1 100644
--- a/libqpdf/qpdf/QPDFValue.hh
+++ b/libqpdf/qpdf/QPDFValue.hh
@@ -14,18 +14,6 @@ class QPDF;
class QPDFObjectHandle;
class QPDFObject;
-struct JSON_Descr
-{
- JSON_Descr(std::shared_ptr<std::string> input, std::string const& object) :
- input(input),
- object(object)
- {
- }
-
- std::shared_ptr<std::string> input;
- std::string object;
-};
-
class QPDFValue
{
friend class QPDFObject;
@@ -37,6 +25,19 @@ class QPDFValue
virtual std::string unparse() = 0;
virtual JSON getJSON(int json_version) = 0;
+ struct JSON_Descr
+ {
+ JSON_Descr(
+ std::shared_ptr<std::string> input, std::string const& object) :
+ input(input),
+ object(object)
+ {
+ }
+
+ std::shared_ptr<std::string> input;
+ std::string object;
+ };
+
using Description = std::variant<std::string, JSON_Descr>;
virtual void