aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDF_Real.hh
blob: 2895cee51e4d34d27510db69f2c86545403ad3de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __QPDF_REAL_HH__
#define __QPDF_REAL_HH__

#include <qpdf/QPDFObject.hh>

class QPDF_Real: public QPDFObject
{
  public:
    QPDF_Real(std::string const& val);
    QPDF_Real(double value, int decimal_places = 0);
    virtual ~QPDF_Real();
    virtual std::string unparse();
    std::string getVal();

  private:
    // Store reals as strings to avoid roundoff errors.
    std::string val;
};

#endif // __QPDF_REAL_HH__