mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-11 15:40:58 +00:00
dbc5f07b90
Add optional parameter shallow. Change logic errors to runtime errors.
22 lines
502 B
C++
22 lines
502 B
C++
#ifndef QPDF_INTEGER_HH
|
|
#define QPDF_INTEGER_HH
|
|
|
|
#include <qpdf/QPDFValue.hh>
|
|
|
|
class QPDF_Integer: public QPDFValue
|
|
{
|
|
public:
|
|
virtual ~QPDF_Integer() = default;
|
|
static std::shared_ptr<QPDFObject> create(long long value);
|
|
virtual std::shared_ptr<QPDFObject> copy(bool shallow = false);
|
|
virtual std::string unparse();
|
|
virtual JSON getJSON(int json_version);
|
|
long long getVal() const;
|
|
|
|
private:
|
|
QPDF_Integer(long long val);
|
|
long long val;
|
|
};
|
|
|
|
#endif // QPDF_INTEGER_HH
|