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-2025 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  class SElement;
15 
21 class STree
22 {
23 public:
24 
33  STree (SDF::Obj struct_dict);
34 
35  STree (const STree&);
36  STree& operator= (const STree&);
37 
45  static STree Create(PDF::PDFDoc& doc);
46 
55  void Insert(class SElement& kid, int insert_before);
56 
60  bool IsValid() const;
61 
65  int GetNumKids();
66 
71  class SElement GetKid(int index);
72 
79  class SElement GetElement(const char* id_buf, int id_buf_sz);
80 
84  RoleMap GetRoleMap() const;
85 
89  class ClassMap GetClassMap() const;
90 
94  SDF::Obj GetSDFObj () const;
95 
96  STree();
97 // @cond PRIVATE_DOC
98 #ifndef SWIGHIDDEN
99  STree(TRN_STree impl);
100 private:
101  TRN_STree mp_tree;
102 #endif
103 // @endcond
104 
105 };
106 
107 
108  }; // namespace Struct
109  }; // namespace PDF
110 }; // namespace pdftron
111 
112 #include <Impl/PDFDoc.inl>
113 
114 #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)