All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ObjectIdentifier.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2020 by PDFTron Systems Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 
6 #ifndef PDFTRON_H_CPPPDFObjectIdentifier
7 #define PDFTRON_H_CPPPDFObjectIdentifier
8 #include <C/PDF/TRN_ObjectIdentifier.h>
9 
10 #include <Common/BasicTypes.h>
11 #include <Common/UString.h>
12 #include <PDF/PDFDoc.h>
13 
14 namespace pdftron { namespace PDF {
19 {
20 public:
21  //enums:
22  enum Predefined {
24  e_surname = 1,
31  };
32 
33  ObjectIdentifier(const ObjectIdentifier& other);
36 
37  void Destroy();
38 
39  //methods:
40 
48  ObjectIdentifier(const Predefined in_oid_enum);
49 
50 
57  ObjectIdentifier(const UInt32* in_arr, const size_t in_size);
58 
64  std::vector<UInt32> GetRawValue() const;
65 
66 #ifdef SWIG
68 #endif
69 
70 #ifndef SWIGHIDDEN
71  ObjectIdentifier(TRN_ObjectIdentifier impl);
72  TRN_ObjectIdentifier m_impl;
73 #endif
74 
75 private:
76 
77 #ifndef SWIGHIDDEN
78  mutable bool m_owner;
79 #endif
80 };
81 
82 #include <Impl/ObjectIdentifier.inl>
83 } //end pdftron
84 } //end PDF
85 
86 
87 #endif //PDFTRON_H_CPPPDFObjectIdentifier
ObjectIdentifier(const ObjectIdentifier &other)
std::vector< UInt32 > GetRawValue() const
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
ObjectIdentifier & operator=(const ObjectIdentifier &other)