aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDF_Integer.hh
blob: ae7f7893ae894ead6df9d9eff15b420bc1da9938 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef QPDF_INTEGER_HH
#define QPDF_INTEGER_HH

#include <qpdf/QPDFValue.hh>

class QPDF_Integer: public QPDFValue
{
  public:
    ~QPDF_Integer() override = default;
    static std::shared_ptr<QPDFObject> create(long long value);
    std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
    std::string unparse() override;
    void writeJSON(int json_version, JSON::Writer& p) override;
    long long getVal() const;

  private:
    QPDF_Integer(long long val);
    long long val;
};

#endif // QPDF_INTEGER_HH