summaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDF_Name.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/qpdf/QPDF_Name.hh')
-rw-r--r--libqpdf/qpdf/QPDF_Name.hh22
1 files changed, 22 insertions, 0 deletions
diff --git a/libqpdf/qpdf/QPDF_Name.hh b/libqpdf/qpdf/QPDF_Name.hh
new file mode 100644
index 00000000..a32f6f4f
--- /dev/null
+++ b/libqpdf/qpdf/QPDF_Name.hh
@@ -0,0 +1,22 @@
+
+#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();
+ virtual std::string unparse();
+ 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__