se_sac.c
static const SE_SAC_DESC SEDRIS_Attribute_Codes[]=
}; /* end SEDRIS_Attribute_Codes */
* GLOBAL VARIABLE (Label): SE_SAC_DAMAGE_GENERAL
* SEDRIS Attribute Code: DGEN
* The extent of physical injury/damage in terms of percent degradation
* from a healthy state. The following interpretations may be applied:
* 25%: Slight Injury/Damage, 50%: Moderate Injury/Damage, 75%: Heavy
* Injury/Damage, 100%: Fatally Injured or Completely Destroyed.
* Recommended Data Type: SE_FLOAT32
* Possible Enumerators: None
* Recommended Maximum Value: 100.0
* Recommended Minimum Value: 0.0
* Recommended Significant Digits: 4
* Recommended Tolerance: 0.1
* Units: SE_UNITS_PERCENT
* Source: IEEE 1278.1A-1998 (June)
const SE_SAC_ID SE_SAC_DAMAGE_GENERAL={{'D','G','E','N'}};
- Document your code, make it obvious
- Use declared constants instead of strings
- Header/body provides declarations and documentation
- Use them!