All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
X501DistinguishedName.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_CPPPDFX501DistinguishedName
7 #define PDFTRON_H_CPPPDFX501DistinguishedName
8 #include <C/PDF/TRN_X501DistinguishedName.h>
9 
10 #include <Common/BasicTypes.h>
11 #include <Common/UString.h>
12 #include <PDF/PDFDoc.h>
13 #include <PDF/ObjectIdentifier.h>
15 
16 namespace pdftron { namespace PDF {
17 
23 {
24 public:
28 
29  void Destroy();
30 
31  //methods:
32 
39  bool HasAttribute(const ObjectIdentifier& in_oid) const;
40 
48 #ifdef SWIG
49  // We use an std::vector of UTF-8 std::strings for SWIG, because SWIG has trouble with mapping UString to string when it's in a vector<UString>.
50  std::vector<std::string> GetStringValuesForAttribute(const ObjectIdentifier& in_oid) const;
51 #else
52 
59  std::vector<UString> GetStringValuesForAttribute(const ObjectIdentifier& in_oid) const;
60 #endif
61 
67  std::vector<pdftron::PDF::X501AttributeTypeAndValue> GetAllAttributesAndValues() const;
68 
69 #ifdef SWIG
71 #endif
72 
73 #ifndef SWIGHIDDEN
74  X501DistinguishedName(TRN_X501DistinguishedName impl);
75  TRN_X501DistinguishedName m_impl;
76 #endif
77 
78 private:
79 
80 #ifndef SWIGHIDDEN
81  mutable bool m_owner;
82 #endif
83 };
84 
85 #include <Impl/X501DistinguishedName.inl>
86 } //end pdftron
87 } //end PDF
88 
89 
90 #endif //PDFTRON_H_CPPPDFX501DistinguishedName
std::vector< UString > GetStringValuesForAttribute(const ObjectIdentifier &in_oid) const
bool HasAttribute(const ObjectIdentifier &in_oid) const
X501DistinguishedName & operator=(const X501DistinguishedName &other)
X501DistinguishedName(const X501DistinguishedName &other)
std::vector< pdftron::PDF::X501AttributeTypeAndValue > GetAllAttributesAndValues() const