From: <sv...@ww...> - 2004-07-17 16:24:00
|
Author: mkrose Date: 2004-07-17 09:23:49 -0700 (Sat, 17 Jul 2004) New Revision: 1157 Modified: trunk/CSP/SimData/CHANGES.current trunk/CSP/SimData/Include/SimData/TaggedRecord.h trunk/CSP/SimData/Include/SimData/TaggedRecordRegistry.h trunk/CSP/SimData/Tools/TaggedRecordCompiler/BaseTypes.py trunk/CSP/SimData/Tools/TaggedRecordCompiler/trc.py Log: Add "custom id" static-class field to TaggedRecord subclasses. This allows applications to assign a short-hand id to each message type, which can be more space efficient than using the full 64-bit id when communicating between servers. For transient messages, the idea is for all communicating parties to agree upon a compact id space for the messages they will exchange and then store these ids in the message classes for easy retrieval. To support the class static variables and the tagged record registry, the tagged record compiler now generates both header and source files for each input file. In the future, some of the less common tr methods may be moved to the source file. Another idea is to add an option to the compiler to omit the custom id field so that the source file doesn't need to be generated (in the case that you don't care about this functionality and don't want the overhead of a source file that must be added to the build system). Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1157 Diff omitted (13437 bytes). |