I was just wondering if there was a way to create a c wrapper API for a c++ class that has inheritance.
Consider the following:
class sampleClass1 : public sampleClass{
public:
int get() { return this.data *2; };
void set(int data);
}
class sampleClass : public sample{
public:
int get() { return this.data; }
void set(int data) {this.data = data; }
}
class sample {
public:
virtual int get();
virtual void set(int data);
private:
int data;
}
How would I wrap the sampleClass1 to make it work in a c context ???
thanks,