Methods
(abstract, static) wrap(query) → {string}
- Description:
This is the C/C++ Javascript wrapping mechanism to be implemented.
-
The architecture is based on a local node.js server,
- The wrapping uses the node-addon-api mechanism.
- It is built using the gyp binding framework.
-
In order to implement a C/C++ wrapping mechanism is implemented in a
wrap.cpp
file in the./src
directory a function of the form:
#include <WrapperCCService.hpp> std::string wrap(const std::map < std::string, std::string >& query) { if(what_is_to_be_done_is_defined_()) { return let_us_do_it_and_return_the_result(); } else { // Returns a standard error message, using the nowrap utility function return nowrap(query); } }
-
Parameters:
Name | Type | Description |
---|---|---|
query |
map | A |
Returns:
The wrapper answer as a string, parsing to a JSON string.
- Type
- string