yury-fedorov / cpp-enum

Enumeration safe wrapper for legacy code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpp-enum

Enumeration safe wrapper for legacy code

  • Enum serializable as a string.
  • Compiler to name of const as string.
  • Only allowed values
  • List of all values
  • Default value (ie. first)
  • Conversion between enum to string and back
  • Autodetection of length for char buffer?
  • Linked to a real enum
  • Linked to a map function
  • String is just one possible map
  • Allocate buffer?
  • Cmake- vs 2008 compatible, mac os also
  • All classical methods
    • Constructors
    • Assignment
    • Compare
    • Virtual destructor

About

Enumeration safe wrapper for legacy code

License:MIT License


Languages

Language:C++ 92.2%Language:CMake 7.8%