|
OverviewThe GigaSpaces C++ interface is based on a C++ projection of the JavaSpaces API. C++ applications can access the space directly using the projected versions of the regular JavaSpaces methods. Objects must be wrapped using the C++ projection of the ExternalEntry class (com::j_spaces::core::client::ExternalEntry; see C++ API Documentation). The C++ package is located at <GigaSpaces Root>/CPP. Working with Projected ClassesPlease note the following when working with GigaSpaces classes projected to C++:
Importing C++ Classes into GigaSpacesAccording to the JavaSpaces specification, only Entries can be written to and read from a space. To write C++ objects to a space, you must use the ExternalEntry wrapper, which stores the meta data of a class in a JavaSpaces-compatible format. You can then write this wrapper to the space (see [Using ExternalEntry - 6.0] for more details). You must use the C++ projection of the ExternalEntry class (com::j_spaces::core::client::ExternalEntry; see C++ API Documentation). A JavaSpaces-compatible wrapper is returned to you transparently. You can then call the C++ projection of the Write() method, passing xe (external entry) and the wrapped object as arguments. |
(works on Firefox 2 and Internet Explorer 7)