layers: Strawman/dartboard new message logger
TODO: Rebase this on top of MikeS recent changes. For your review/critique is a quick and dirty working protoptype of a new message logger for the validation layers. The goals were: * No repetition of known data (i.e. types/VUIDs) * No casts when constructing messages. * Flexible formatting options. * No formatting if message will not be emitted. * A starting place for more brainstorming * Quick and dirty Missing: * even better automatic casting/overload. (given further code generation) * detailed interface design (naming, and method vs. operator) Messy: * Use of MACRO for msg generation (to compress flags and __LINE__) * add_x and add_h for hex and handle handling... * transitions between built-in type support (<< operations) and .add* method operations * Using << style formatting. (maybe not familiar to maintainers) Pretty Cool: * Automatic object type detection * No-op output functions if messages are not enabled * Built-in sprintf conversions * Automatic update of "skip", and post to debug_log_msg in destructor * Automatic appending of validation_error_message (when avail) * No more PRI ... Change-Id: I5ea8f5e95c9d765ab846038d6ceab60fc111d3d4
Loading
Please register or sign in to comment