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
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
ClassMap.h
RoleMap.h
pdftron::PDF::PDFDoc
Definition PDFDoc.h:72
pdftron::PDF::Struct::ClassMap
Definition ClassMap.h:18
pdftron::PDF::Struct::RoleMap
Definition RoleMap.h:21
pdftron::PDF::Struct::SElement
Definition SElement.h:23
pdftron::PDF::Struct::STree::IsValid
bool IsValid() const
pdftron::PDF::Struct::STree::GetNumKids
int GetNumKids()
pdftron::PDF::Struct::STree::operator=
STree & operator=(const STree &)
pdftron::PDF::Struct::STree::STree
STree(const STree &)
pdftron::PDF::Struct::STree::GetSDFObj
SDF::Obj GetSDFObj() const
pdftron::PDF::Struct::STree::GetClassMap
class ClassMap GetClassMap() const
pdftron::PDF::Struct::STree::GetRoleMap
RoleMap GetRoleMap() const
pdftron::PDF::Struct::STree::GetElement
class SElement GetElement(const char *id_buf, int id_buf_sz)
pdftron::PDF::Struct::STree::STree
STree(SDF::Obj struct_dict)
pdftron::PDF::Struct::STree::STree
STree()
pdftron::PDF::Struct::STree::GetKid
class SElement GetKid(int index)
pdftron::PDF::Struct::STree::Insert
void Insert(class SElement &kid, int insert_before)
pdftron::PDF::Struct::STree::Create
static STree Create(PDF::PDFDoc &doc)
pdftron::SDF::Obj
Definition Obj.h:41
pdftron::PDF::Struct
Definition PDFDoc.h:35
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10