mirror of
https://github.com/nasa/trick.git
synced 2025-06-21 16:39:37 +00:00
Improve printable field detection
Renamed determinePrintAttr to isPrintable. Different callers need to filter on different IO specs, so I added an ioMask parameter. Additional refactoring. Refs #427
This commit is contained in:
@ -53,10 +53,10 @@ class PrintFileContentsBase {
|
||||
void print_close_extern_c(std::ostream & ostream) ;
|
||||
|
||||
/* internal function determines if a particular field is printable */
|
||||
bool determinePrintAttr(ClassValues * c , FieldDescription *fdes) ;
|
||||
bool isPrintable(ClassValues * c , FieldDescription *fdes , unsigned int ioMask = 0xFFFFFFF) ;
|
||||
|
||||
/* gets a vector of fields that can be printed */
|
||||
std::vector<FieldDescription*> getPrintableFields(ClassValues& classValues);
|
||||
std::vector<FieldDescription*> getPrintableFields(ClassValues& classValues, unsigned int ioMask = 0xFFFFFFF);
|
||||
|
||||
} ;
|
||||
|
||||
|
Reference in New Issue
Block a user