aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Operator.cc
blob: b61d47b1982b0993bdb500365a2844260cb92d7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <qpdf/QPDF_Operator.hh>

#include <qpdf/QUtil.hh>

QPDF_Operator::QPDF_Operator(std::string const& val) :
    val(val)
{
}

QPDF_Operator::~QPDF_Operator()
{
}

std::string
QPDF_Operator::unparse()
{
    return this->val;
}

JSON
QPDF_Operator::getJSON()
{
    return JSON::makeNull();
}

QPDFObject::object_type_e
QPDF_Operator::getTypeCode() const
{
    return QPDFObject::ot_operator;
}

char const*
QPDF_Operator::getTypeName() const
{
    return "operator";
}

std::string
QPDF_Operator::getVal() const
{
    return this->val;
}