All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
STree.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFStructSTree
6 #define PDFTRON_H_CPPPDFStructSTree
7 
8 #include <PDF/Struct/RoleMap.h>
9 #include <PDF/Struct/ClassMap.h>
10 
11 namespace pdftron {
12  namespace PDF {
13  namespace Struct {
14 
20 class STree
21 {
22 public:
23 
32  STree (SDF::Obj struct_dict);
33 
34  STree (const STree&);
35  STree& operator= (const STree&);
36 
44  static STree Create(PDF::PDFDoc& doc);
45 
54  void Insert(class SElement& kid, int insert_before);
55 
59  bool IsValid() const;
60 
64  int GetNumKids();
65 
70  class SElement GetKid(int index);
71 
78  class SElement GetElement(const char* id_buf, int id_buf_sz);
79 
83  RoleMap GetRoleMap() const;
84 
88  class ClassMap GetClassMap() const;
89 
93  SDF::Obj GetSDFObj () const;
94 
95  STree();
96 // @cond PRIVATE_DOC
97 #ifndef SWIGHIDDEN
98  STree(TRN_STree impl);
99 private:
100  TRN_STree mp_tree;
101 #endif
102 // @endcond
103 
104 };
105 
106 
107  }; // namespace Struct
108  }; // namespace PDF
109 }; // namespace pdftron
110 
111 #include <Impl/PDFDoc.inl>
112 
113 #endif // PDFTRON_H_CPPPDFStructSTree
static STree Create(PDF::PDFDoc &doc)
STree & operator=(const STree &)
RoleMap GetRoleMap() const
SDF::Obj GetSDFObj() const
void Insert(class SElement &kid, int insert_before)