Hi,
Is there some example about how to wrap C++ classes with ECLs foreign
function interface?
How, for example, would I wrap the following simple program?
;; Making a cube of size 2
Cube* cube = new Cube(2.0);
;; Changing its size to 10
cube->setSize(10.0);
;; Getting its size
cube->getSize();
;; Deleting the object
delete cube;
based on a class like the following
class Cube {
private:
double _size;
public:
Cube(): _size(1.0) {}
Cube(const double size): _size(size) {}
void setSize(const double size) { _size = size; }
double getSize() const { return _size; }
};
?
Thanks, Dietrich
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list