mirror of
https://github.com/nasa/trick.git
synced 2025-06-22 00:41:52 +00:00
Output "--" if that was specified in the header file.
Used the mods field in the attributes to indicate of "--" was specified in the header file. We still save the units as "1" to keep it compatible with udunits. When outputting the variable in data recording or variable server we check to see if the mods field for "--" is set. We output "--" if the mods field is set. Also allowed "--" to persist in data products. refs #254
This commit is contained in:
@ -93,7 +93,7 @@ void PrintFileContents10::print_field_attr(std::ofstream & outfile , FieldDescr
|
||||
outfile << ",sizeof(" << fdes->getTypeName() << ")" ;
|
||||
}
|
||||
outfile << ",0,0,Language_CPP" ; // range_min, range_max, language
|
||||
outfile << "," << (fdes->isStatic() << 1 ) << "," << std::endl ; // mods
|
||||
outfile << "," << (fdes->isStatic() << 1) + (fdes->isDashDashUnits() << 2) << "," << std::endl ; // mods
|
||||
if ( fdes->isBitField() ) {
|
||||
// For bitfields we need the offset to start on 4 byte boundaries because that is what our
|
||||
// insert and extract bitfield routines work with.
|
||||
|
Reference in New Issue
Block a user