Beispiel #1
0
            public SaHpiDimiTestParamValueT DemarshalSaHpiDimiTestParamValueT( long mod )
            {
                SaHpiDimiTestParamValueT x = new SaHpiDimiTestParamValueT();

                if ( mod == HpiConst.SAHPI_DIMITEST_PARAM_TYPE_INT32 ) {
                x.paramint = DemarshalSaHpiInt32T();
                }
                if ( mod == HpiConst.SAHPI_DIMITEST_PARAM_TYPE_FLOAT64 ) {
                x.parambool = DemarshalSaHpiBoolT();
                }
                if ( mod == HpiConst.SAHPI_DIMITEST_PARAM_TYPE_BOOLEAN ) {
                x.paramfloat = DemarshalSaHpiFloat64T();
                }
                if ( mod == HpiConst.SAHPI_DIMITEST_PARAM_TYPE_TEXT ) {
                x.paramtext = DemarshalSaHpiTextBufferT();
                }

                return x;
            }
Beispiel #2
0
 public void MarshalSaHpiDimiTestParamValueT( SaHpiDimiTestParamValueT x, long mod )
 {
     if ( mod == HpiConst.SAHPI_DIMITEST_PARAM_TYPE_INT32 ) {
     MarshalSaHpiInt32T( x.paramint );
     }
     if ( mod == HpiConst.SAHPI_DIMITEST_PARAM_TYPE_FLOAT64 ) {
     MarshalSaHpiBoolT( x.parambool );
     }
     if ( mod == HpiConst.SAHPI_DIMITEST_PARAM_TYPE_BOOLEAN ) {
     MarshalSaHpiFloat64T( x.paramfloat );
     }
     if ( mod == HpiConst.SAHPI_DIMITEST_PARAM_TYPE_TEXT ) {
     MarshalSaHpiTextBufferT( x.paramtext );
     }
 }
Beispiel #3
0
 /**
  * Check function for HPI union SaHpiDimiTestParamValueT
  */
 public static bool Check( SaHpiDimiTestParamValueT x, long mod )
 {
     if ( x == null ) {
     return false;
     }
     if ( mod == HpiConst.SAHPI_DIMITEST_PARAM_TYPE_TEXT ) {
     if ( !Check( x.paramtext ) ) {
     return false;
     }
     }
     return true;
 }