- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
pdftron::PDF::Struct::SElement
Definition: SElement.h:22
pdftron::PDF::Struct::STree::Create
static STree Create(PDF::PDFDoc &doc)
pdftron::PDF::Struct::ClassMap
Definition: ClassMap.h:17
pdftron::PDF::Struct::STree::operator=
STree & operator=(const STree &)
pdftron::PDF::Struct::RoleMap
Definition: RoleMap.h:20
pdftron::PDF::Struct::STree::GetRoleMap
RoleMap GetRoleMap() const
pdftron::PDF::Struct::STree
Definition: STree.h:21
pdftron::PDF::Struct::STree::GetSDFObj
SDF::Obj GetSDFObj() const
pdftron::PDF::Struct::STree::IsValid
bool IsValid() const
pdftron::PDF::PDFDoc
Definition: PDFDoc.h:71
pdftron::PDF::Struct::STree::STree
STree()
ClassMap.h
pdftron::PDF::Struct::STree::Insert
void Insert(class SElement &kid, int insert_before)
RoleMap.h
pdftron::SDF::Obj
Definition: Obj.h:40
pdftron::PDF::Struct::STree::GetNumKids
int GetNumKids()