mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-16 17:45:09 +00:00
16f4f94cd9
Update getJSON() methods and calls to them
37 lines
465 B
C++
37 lines
465 B
C++
#include <qpdf/QPDF_Bool.hh>
|
|
|
|
QPDF_Bool::QPDF_Bool(bool val) :
|
|
val(val)
|
|
{
|
|
}
|
|
|
|
std::string
|
|
QPDF_Bool::unparse()
|
|
{
|
|
return (val ? "true" : "false");
|
|
}
|
|
|
|
JSON
|
|
QPDF_Bool::getJSON(int json_version)
|
|
{
|
|
return JSON::makeBool(this->val);
|
|
}
|
|
|
|
QPDFObject::object_type_e
|
|
QPDF_Bool::getTypeCode() const
|
|
{
|
|
return QPDFObject::ot_boolean;
|
|
}
|
|
|
|
char const*
|
|
QPDF_Bool::getTypeName() const
|
|
{
|
|
return "boolean";
|
|
}
|
|
|
|
bool
|
|
QPDF_Bool::getVal() const
|
|
{
|
|
return this->val;
|
|
}
|