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-2018 by PDFTron Systems 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 
43  void SetValue(SDF::Obj value);
44 
49  UString GetName();
50 
56 
60  SDF::Obj GetSDFObj () const;
61 
68  SDF::Obj FindAttribute (const char* attrib) const;
69 
73  operator bool () { return m_field.mp_leaf_node!=0;}
74 
75 private:
76  TRN_FDFField m_field;
77 };
78 
79 
80 
81 #include <Impl/FDFField.inl>
82 
83  }; // namespace FDF
84 }; // namespace pdftron
85 
86 #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)

© 2002-2014 PDFTron Systems Inc.