ADi-FontEngine  1.0
PDF Optimized FontEngine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PostScriptPDFFunction.h
Go to the documentation of this file.
1 // PostScriptEngine/PostScriptPDFFunction.h
2 //
3 // Copyright 2013 - Andreas Dippe
4 //
5 // This file is part of ADi-FontEngine, 2013
6 //-----------------------------------------------------------------------------
7 
8 #ifndef _POSTSCRIPTPDFFUNCTION_H_
9 #define _POSTSCRIPTPDFFUNCTION_H_
10 
12 
14 //-----------------------------------------------------------------------------
15 
16 namespace PostScript
17 {
18  class PSDocument;
19  //-----------------------------------------------------------------------------
20  //!< class to support PostScript function objects defined in PDF Documents
22  {
24  //-----------------------------------------------------------------------------
25  /*! \brief default ctor
26  */
28  : _errcode( eNoError)
29  , _psdoc( NULL)
30  {}
31  //-----------------------------------------------------------------------------
32  /*! \brief copy ctor
33  \param ppsfunc instance to into this
34  */
35  TPSFunction( const TPSFunction & ppsfunc)
36  : _errcode( ppsfunc._errcode)
37  , _result( ppsfunc._result)
38  , _psdoc( NULL)
39  {}
40  //-----------------------------------------------------------------------------
41  /*! \brief assignment operator
42  \param ppsfunc instance to into this
43  */
44  TPSFunction & operator=( const TPSFunction & ppsfunc)
45  {
46  _errcode = ppsfunc._errcode;
47  _result = ppsfunc._result;
48  _psdoc = NULL;
49  return *this;
50  }
51  //-----------------------------------------------------------------------------
52  /*! \brief dtor
53  */
54  ~TPSFunction();
55  //-----------------------------------------------------------------------------
56  /*! \brief calculating function must be valid PostScript code
57  \param pscode the PostScript code
58  \param input the input values expect by PostScript code; Beware: The last vector entry will be the top of PostScript operand stack
59  \return the operand stack of the PostScript function call; Beware: The first vector entry was the top of PostScript operand stack
60  */
61  const TNumberVec & calculate( std::istream & pscode, const TNumberVec & input);
62  //-----------------------------------------------------------------------------
63  //-----------------------------------------------------------------------------
66  PSDocument* _psdoc;
67  };
68 
69 } // PostScript namespace
70 
71 #endif // _POSTSCRIPTPDFFUNCTION_H_
72 //-----------------------------------------------------------------------------
73 /*!\history
74 ** ADi-2013-06-27: creation
75 ** ADi-2013-07-01: correct TNumberVec typedef
76 ** ADi-2013-07-01: remove auto_ptr
77 */
TPSFunction & operator=(const TPSFunction &ppsfunc)
assignment operator
Definition: PostScriptPDFFunction.h:44
PSDocument * _psdoc
Definition: PostScriptPDFFunction.h:66
&lt; class to support PostScript function objects defined in PDF Documents
Definition: PostScriptPDFFunction.h:21
TPSFunction(const TPSFunction &ppsfunc)
copy ctor
Definition: PostScriptPDFFunction.h:35
EErrorCodes
PostScript error codes.
Definition: PostScriptEngineError.h:25
TPSFunction()
default ctor
Definition: PostScriptPDFFunction.h:27
EErrorCodes _errcode
Definition: PostScriptPDFFunction.h:64
std::vector< double > TNumberVec
Definition: FontEngineTypes.h:28
Definition: PostScriptEngineError.h:27
FontEngine::TNumberVec TNumberVec
Definition: PostScriptPDFFunction.h:23
TNumberVec _result
Definition: PostScriptPDFFunction.h:65
#define FONTENGINE_EXPORTS
Definition: FontEngineDLL.h:20
InsideFont and ADI-FontEngine : Andreas Dippe, © 2013
http://www.insidefont.de