2018-08-12 18:07:22 +00:00
|
|
|
#ifndef QPDF_NAME_HH
|
|
|
|
#define QPDF_NAME_HH
|
2008-04-29 12:55:25 +00:00
|
|
|
|
2022-08-02 20:35:04 +00:00
|
|
|
#include <qpdf/QPDFValue.hh>
|
2008-04-29 12:55:25 +00:00
|
|
|
|
2022-08-02 20:35:04 +00:00
|
|
|
class QPDF_Name: public QPDFValue
|
2008-04-29 12:55:25 +00:00
|
|
|
{
|
|
|
|
public:
|
2022-04-15 23:44:07 +00:00
|
|
|
virtual ~QPDF_Name() = default;
|
2022-09-08 15:29:23 +00:00
|
|
|
static std::shared_ptr<QPDFObject> create(std::string const& name);
|
|
|
|
virtual std::shared_ptr<QPDFObject> shallowCopy();
|
2008-04-29 12:55:25 +00:00
|
|
|
virtual std::string unparse();
|
2022-05-07 11:53:45 +00:00
|
|
|
virtual JSON getJSON(int json_version);
|
2008-04-29 12:55:25 +00:00
|
|
|
std::string getName() const;
|
|
|
|
|
|
|
|
// Put # into strings with characters unsuitable for name token
|
|
|
|
static std::string normalizeName(std::string const& name);
|
|
|
|
|
|
|
|
private:
|
2022-06-16 16:45:04 +00:00
|
|
|
QPDF_Name(std::string const& name);
|
2008-04-29 12:55:25 +00:00
|
|
|
std::string name;
|
|
|
|
};
|
|
|
|
|
2018-08-12 18:07:22 +00:00
|
|
|
#endif // QPDF_NAME_HH
|