The MModel.h has been included in the MessageInterpreter.h which has the models #include to the MTreatmentParameters. Please remove this duplicate inclusion. Please follow the code structure and please notice that there is no other model included here and has to be a reason for that.
Interesting !!! This file doesn't even exist anymore and has been replaced by Logger.h I don't see it in my folder and don't see it in my git log. Don't know why has been shown here.
As per our conversation today, due to the design changes with MAbstract.h and MModel.h that were merged to master on Aug. 31st, the create treatment models will be updated to subclass these parent classes. This work is going to be tracked in this ticket: http://dvm-linux02:8080/browse/DEN-4981
Suggest renaming variable to something meaningful like valveState. Also, change type to U32 as compiler may not consider an enum type like OPN_CLS_STATE_T as 32-bit and so memcpy may corrupt data beyond the enum. You can cast this valveState as a OPN_CLS_STATE_T when using in function call below.