FDFField.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------------------
00002 // Copyright (c) 2001-2008 by PDFTron Systems Inc. All Rights Reserved.
00003 // Consult legal.txt regarding legal and license information.
00004 //---------------------------------------------------------------------------------------
00005 
00006 #ifndef   H_CPPFDFField
00007 #define   H_CPPFDFField
00008 
00009 #include <SDF/Obj.h>
00010 #include <C/FDF/TRN_FDFField.h>
00011 
00012 namespace pdftron { 
00013         namespace FDF {
00014 
00015 
00016 class FDFField
00017 {
00018 public: 
00019 
00023         FDFField (SDF::Obj field_dict, SDF::Obj fdf_dict);
00024 
00025         FDFField (const FDFField& p);
00026         FDFField& operator= (const FDFField& p);
00027 
00033         SDF::Obj GetValue();
00034 
00043         void SetValue(SDF::Obj value);
00044 
00049         UString GetName();
00050 
00055         UString GetPartialName();
00056     
00060         SDF::Obj GetSDFObj () const;
00061 
00068         SDF::Obj FindAttribute (const char* attrib) const;
00069 
00073          operator bool () { return m_field.mp_leaf_node!=0;}
00074 
00075 private:
00076 
00077         FDFField ();
00078         TRN_FDFField m_field;
00079 };
00080 
00081 
00082 
00083 #include <Impl/FDFField.inl>
00084 
00085         };      // namespace FDF
00086 };      // namespace pdftron
00087 
00088 #endif
00089 
00090 

© 2002-2008 PDFTron Systems Inc.