aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDF_Null.hh
blob: 2a099bf9d6970bf41861f31091e88994509321ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef QPDF_NULL_HH
#define QPDF_NULL_HH

#include <qpdf/QPDFValue.hh>

class QPDF_Null: public QPDFValue
{
  public:
    ~QPDF_Null() override = default;
    static std::shared_ptr<QPDFObject> create();
    static std::shared_ptr<QPDFObject> create(
        std::shared_ptr<QPDFObject> parent,
        std::string_view const& static_descr,
        std::string var_descr);
    static std::shared_ptr<QPDFObject> create(
        std::shared_ptr<QPDFValue> parent,
        std::string_view const& static_descr,
        std::string var_descr);
    std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
    std::string unparse() override;
    JSON getJSON(int json_version) override;
    void writeJSON(int json_version, JSON::Writer& p) override;

  private:
    QPDF_Null();
};

#endif // QPDF_NULL_HH