mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-15 17:17:08 +00:00
913eb5ac35
Add virtual methods to QPDFObject, wrappers to QPDFObjectHandle, and implementations to all the QPDF_Object types.
35 lines
409 B
C++
35 lines
409 B
C++
#include <qpdf/QPDF_Bool.hh>
|
|
|
|
QPDF_Bool::QPDF_Bool(bool val) :
|
|
val(val)
|
|
{
|
|
}
|
|
|
|
QPDF_Bool::~QPDF_Bool()
|
|
{
|
|
}
|
|
|
|
std::string
|
|
QPDF_Bool::unparse()
|
|
{
|
|
return (val ? "true" : "false");
|
|
}
|
|
|
|
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;
|
|
}
|