Once the codebase has been parsed, the tool will create a new header file (or rewrite an existing one) and save all exported enums as string arrays.
Consider the following C/C++ Header:
#
ifndef
_Transform_h_ #
define
_Transform_h_
class
Transform {
enum
TransformSource { TS_NONE = 0, TS_PARENT, TS_SCENE, TS_COUNT }; Transform(); ~Transform();
//etc...
}; #
endif
//_Transform_h_
If this file would serve as input to the enum parsing tool, the tool would create the following output:
const char
* TransformSourceStr[] = { "TS_NONE", "TS_PARENT", "TS_SCENE", "TS_COUNT" };
More informations about the tool and the source code can be found in the BitBucket repository.