// Clock.h
class Clock {
protected:
int hours;
int minutes;
int seconds;
public:
Clock( int h,
int min,
int sec);
void set( int h,
int min,
int sec);
int getHours() {
return hours;
};
int getMinutes() {
return minutes;
};
int getSeconds() {
return seconds;
};
void tick();
};
// Clock.i
%module Clock
%{
#include "Clock.h"
%}
%include "Clock.h"