Skip to content

Generate enum to string class form C++ headers

Notifications You must be signed in to change notification settings

mensinda/enumGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enumGen

Generate C++ code to convert an enum value to a string + more.

Usage

./enumGen.py parse    test/test1.hpp out/test1.json # generates intermediate test1.json
# additional parse calls...

./enumGen.py generate Enum2Str Enum2Str.hpp Enum2Str.cpp *.json # generates class Enum2Str (Enum2Str.{cpp,hpp})

for more information see ./enumGen.py -h and ./enumGen.py parse -h and ./enumGen.py generate -h