All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FDFField.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2024 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPFDFFDFField
6 #define PDFTRON_H_CPPFDFFDFField
7 
8 #include <SDF/Obj.h>
9 #include <C/FDF/TRN_FDFField.h>
10 
11 namespace pdftron {
12  namespace FDF {
13 
14 
15 class FDFField
16 {
17 public:
18 
22  FDFField (SDF::Obj field_dict = 0, SDF::Obj fdf_dict = 0);
23 
24  FDFField (const FDFField& p);
25  FDFField& operator= (const FDFField& p);
26 
33 
40  void SetValue(SDF::Obj value);
41 
46  UString GetName();
47 
53 
57  SDF::Obj GetSDFObj () const;
58 
65  SDF::Obj FindAttribute (const char* attrib) const;
66 
70  operator bool () { return m_field.mp_leaf_node!=0;}
71 
72 private:
73  TRN_FDFField m_field;
74 };
75 
76 
77 
78 #include <Impl/FDFField.inl>
79 
80  }; // namespace FDF
81 }; // namespace pdftron
82 
83 #endif // PDFTRON_H_CPPFDFFDFField
SDF::Obj FindAttribute(const char *attrib) const
SDF::Obj GetSDFObj() const
void SetValue(SDF::Obj value)
FDFField(SDF::Obj field_dict=0, SDF::Obj fdf_dict=0)
FDFField & operator=(const FDFField &p)