XPRMgetmodprop
| XPRMgetmodprop | 
  Purpose
 
  
  Synopsis
 
 int XPRMgetmodprop(XPRMmodel model, int prop, XPRMalltypes *value);
 
  Arguments
 
 | 
     model 
     | 
     Reference to a model
     | ||||||||||||||||||||||
| 
     prop 
     | 
     Property to retrieve. Possible values:
     
 | ||||||||||||||||||||||
| 
     value 
     | 
     Pointer to an area where the model property is returned
     | 
  Return value
 
 
 0 if successful, 1 otherwise.
 
  Further information
 
 
 1. This function returns information about a given model. The type of the property (specified via the
 prop argument) decides how the argument
 value is interpreted: the field
 integer is used for
 ID,
 VERSION,
 SECSTAT and
 NBTYPES;
 size for
 SIZE and
 DATE (should be casted to the C type
 time_t); and
 string for the other properties. The returned version number is coded as an integer, for example,
 1.2.3 is coded as
 1002003.
 
 
 2. The
 security status is a bit encoded integer indicating whether the bim file was encrypted (value
 XPRM_SECSTAT_CRYPTED); signed (value
 XPRM_SECSTAT_SIGNED). If the bimfile was signed, the bits
 XPRM_SECSTAT_VERIFIED and
 XPRM_SECSTAT_UNVERIFIED indicate whether the signature was valid (if none of these bits is set the signature was not checked).
 
 
