Loading...
Searching...
No Matches
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
10
11namespace pdftron {
12 namespace PDF {
13 namespace Struct {
14 class SElement;
15
21class STree
22{
23public:
24
33 STree (SDF::Obj struct_dict);
34
35 STree (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
66
71 class SElement GetKid(int index);
72
79 class SElement GetElement(const char* id_buf, int id_buf_sz);
80
85
89 class ClassMap GetClassMap() const;
90
95
97// @cond PRIVATE_DOC
98#ifndef SWIGHIDDEN
99 STree(TRN_STree impl);
100private:
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
STree & operator=(const STree &)
SDF::Obj GetSDFObj() const
class ClassMap GetClassMap() const
RoleMap GetRoleMap() const
class SElement GetElement(const char *id_buf, int id_buf_sz)
STree(SDF::Obj struct_dict)
class SElement GetKid(int index)
void Insert(class SElement &kid, int insert_before)
static STree Create(PDF::PDFDoc &doc)