Limbic~Region has asked for the wisdom of the Perl Monks concerning the following question:
The C++ interface to IBM NameWorks is now public. The C++ APIs are the definitive versions of the IBM NameWorks APIs, whereas the Java APIs are a thin, generally transparent “wrapper” layer over the C++ interface. The following example illustrates the differences between the C++ and Java versions of the analyzeForSearch() API:
C++: vector<QueryName> qnames; scoring.analyzeForSearch(name, 70, qnames);
Java: List<QueryName> qnames = scoring.analyzeForSearch(name, 70);
Other wrappers can be created for the C++ layer, such as managed C# for .NET, Ruby extensions, PHP extensions, or Perl extensions.
Now for some embarassing disclaimers.
What would be ideal is a full working example of what I ultimately need to duplicate. In my head, the process looks like this:
Any help or insight is appreciated. While I am not opposed to trudging through lots of documentation, I would prefer to have a working example to start from to be able to distinguish between problems in my understanding from those in my code.
Update 2010-03-17: I will very likely turn this into a pipe line process given the responses below. I happen to work with a former C++ developer so I will have him create me a stand-alone executable. Perl will generate a file of records as output. The C++ app will run the records through the APIs I need and write an output file which I will pick back up with perl on the other end. Not ideal but it gets the job done. Thanks!
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: More Than A Little Help With Inline:CPP
by almut (Canon) on Mar 16, 2010 at 23:02 UTC | |
|
Re: More Than A Little Help With Inline:CPP
by syphilis (Archbishop) on Mar 17, 2010 at 04:32 UTC |