mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 15:17:29 +00:00
23 lines
486 B
C++
23 lines
486 B
C++
#ifndef QPDF_BOOL_HH
|
|
#define QPDF_BOOL_HH
|
|
|
|
#include <qpdf/QPDFValue.hh>
|
|
|
|
class QPDF_Bool: public QPDFValue
|
|
{
|
|
public:
|
|
~QPDF_Bool() override = default;
|
|
static std::shared_ptr<QPDFObject> create(bool val);
|
|
std::shared_ptr<QPDFObject> copy(bool shallow = false) override;
|
|
std::string unparse() override;
|
|
void writeJSON(int json_version, JSON::Writer& p) override;
|
|
|
|
bool getVal() const;
|
|
|
|
private:
|
|
QPDF_Bool(bool val);
|
|
bool val;
|
|
};
|
|
|
|
#endif // QPDF_BOOL_HH
|