Skip to content

tisrico/named-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

named-code

A unit allows you quickly translate between code values and string names. It is much readable to dump code names in logs rather than the code values, in the same time it's an advange to allow code names to be accepted rather than code values in cofiguration files or command lines etc.

Usage

Just include nc.h, and define the list of codes, and define the named code by using DEFINE_NAMEDCODE

Check examples in test.cc

Test

g++ -std=c++11 test.cc && ./a.out
all good.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages