blob: cf653b2e64f77b32499f4a60d88eeeb41ca9ff82 (
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
|
#ifndef QPDF_NAME_HH
#define QPDF_NAME_HH
#include <qpdf/QPDFObject.hh>
class QPDF_Name: public QPDFObject
{
public:
virtual ~QPDF_Name() = default;
static std::shared_ptr<QPDFObject> create(std::string const& name);
virtual std::shared_ptr<QPDFObject> shallowCopy();
virtual std::string unparse();
virtual JSON getJSON(int json_version);
virtual QPDFObject::object_type_e getTypeCode() const;
virtual char const* getTypeName() const;
std::string getName() const;
// Put # into strings with characters unsuitable for name token
static std::string normalizeName(std::string const& name);
private:
QPDF_Name(std::string const& name);
std::string name;
};
#endif // QPDF_NAME_HH
|