I am trying to convert c++ API's into python. I have written interface file for one .cpp file i.e given below

%module example
> %{
> #include "oaBuildDef.h"
> #include "oaDesignDBTypesPvt.h"
> #include "oaBoundary.inl"
> #include "oaOccShapeV.h"
> #include "oaBuildInfo.inl"
> #include "oaGroup.inl"

> %}
> %include "oaBuildDef.h"
> %include "oaDesignDBTypesPvt.h"
> %include "oaBoundary.inl"
> %include "oaOccShapeV.h"
> %include "oaBuildInfo.inl"
> %include "oaGroup.inl"

> Error I am getting is oaDesignDBTypesPvt.h:54: Error: Syntax error in input(1).

I have checked line 54 in oaDesignDBTypesPvt.h and function given below is defined there

enum oaObjectDomainModTypeEnum {
    oacAddToBlockDomainModType      = 4,
    oacAddToModDomainModType        = 5,
    oacAddToOccDomainModType        = 6,
    oacRemoveFromBlockDomainModType = 7,
    oacRemoveFromModDomainModType   = 8,
    oacRemoveFromOccDomainModType   = 9
};

Please suggest what should I do? Should I add this in interface file, if yes then how?
I checked that error in internet also but didn't get any solution.

Please give proper explanation