EDOBE XDOM PMML Manuel d'utilisateur Page 35

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 98
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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:
Vue de la page 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 97 98

Commentaires sur ces manuels

Pas de commentaire