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-2018 by PDFTron Systems 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 
27  Obj CreateName(const char* name);
28 
32  Obj CreateArray();
33 
38  Obj CreateBool(bool value);
39 
43  Obj CreateDict();
44 
48  Obj CreateNull();
49 
54  Obj CreateNumber(double value);
55 
60  Obj CreateString(const UString& value);
61 
67  Obj CreateFromJson(const UString& value);
68 
72  void Destroy();
73 
74 private:
75  TRN_ObjSet mp_set;
76 };
77 
78 
79 #include <Impl/ObjSet.inl>
80  }; // namespace SDF
81 }; // namespace pdftron
82 
83 #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)

© 2002-2014 PDFTron Systems Inc.