2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-28 07:53:11 +00:00
qpdf/libqpdf/qpdf/QPDF_Name.hh
Jay Berkenbilt 16f4f94cd9 Prepare code for JSON v2
Update getJSON() methods and calls to them
2022-05-07 11:12:01 -04:00

25 lines
606 B
C++

#ifndef QPDF_NAME_HH
#define QPDF_NAME_HH
#include <qpdf/QPDFObject.hh>
class QPDF_Name: public QPDFObject
{
public:
QPDF_Name(std::string const& name);
virtual ~QPDF_Name() = default;
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:
std::string name;
};
#endif // QPDF_NAME_HH