File: QPDF_Bool.cc

package info (click to toggle)
qpdf 2.3.1-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 12,084 kB
  • sloc: cpp: 18,192; sh: 9,543; perl: 4,578; xml: 2,727; ansic: 712; makefile: 92
file content (22 lines) | stat: -rw-r--r-- 242 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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");
}

bool
QPDF_Bool::getVal() const
{
    return this->val;
}