EDOBE XDOM PMML Manual de usuario Pagina 35

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 98
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 34
35
* DLL
*/
public void createPeerObject() {
createCNKObject("cnkcopy", new String[] {
"CNKProcCppSecondCopy", "CNKProc", "CNKObj" });
}
}
C++ CNKProc Now that we’ve written the necessary Java code for our second
implementation, it’s time to construct the C++ code that does the
actual computation. We’ll need a C++ header file and
implementation.
Header File
The CNKProcCppSecondCopy.h file will contain:
#if !defined(CNKProcCppSecondCopy_INCLUDED_)
#define CNKProcCppSecondCopy_INCLUDED_
#include "CNKObj.h"
#include "CNKBuf.h"
#include "CNKBufReader.h"
#include "CNKProc.h"
class CNKProcCppSecondCopy : public CNKProc
{
public:
CNKProcCppSecondCopy();
virtual ~CNKProcCppSecondCopy();
virtual void init();
virtual void execute();
};
#endif // !defined(CNKProcCppSecondCopy_INCLUDED_)
If we had any property information to exchange with Java, we would
also declare and implement
setProperty() and getProperty().
Implementation
The CNKProcCppSecondCopy.cpp file will contain:
Vista de pagina 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 97 98

Comentarios a estos manuales

Sin comentarios