All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ObjSet.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_CPPSDFObjSet
6 #define PDFTRON_H_CPPSDFObjSet
7 
8 #include <SDF/Obj.h>
9 #include <C/SDF/TRN_ObjSet.h>
10 
11 namespace pdftron {
12  namespace SDF {
13 
17 class ObjSet
18 {
19 public:
20  ObjSet();
21  ~ObjSet();
22 
23  ObjSet(const ObjSet& source);
24  ObjSet& operator=(const ObjSet& source);
25 
30  Obj CreateName(const char* name);
31 
35  Obj CreateArray();
36 
41  Obj CreateBool(bool value);
42 
46  Obj CreateDict();
47 
51  Obj CreateNull();
52 
57  Obj CreateNumber(double value);
58 
63  Obj CreateString(const UString& value);
64 
70  Obj CreateFromJson(const UString& value);
71 
75  void Destroy();
76 
77 private:
78  TRN_ObjSet mp_set;
79 };
80 
81 
82 #include <Impl/ObjSet.inl>
83  }; // namespace SDF
84 }; // namespace pdftron
85 
86 #endif // PDFTRON_H_CPPSDFObjSet
Obj CreateBool(bool value)
Obj CreateFromJson(const UString &value)
Obj CreateNumber(double value)
Obj CreateString(const UString &value)
Obj CreateName(const char *name)
ObjSet & operator=(const ObjSet &source)