nv-cli-creat-flat-cpp-ns
v1.0.1
Published
nv-cli-creat-flat-cpp-ns ========== - cli-tool , creat some flat namespace from json
Readme
nv-cli-creat-flat-cpp-ns
- cli-tool , creat some flat namespace from json
install
- npm install nv-cli-creat-flat-cpp-ns -g
usage
Usage: nv_cli_creat_flat_cpp_ns [options]
Options:
-n, --name default "NV"
-i, --input input string ,default stdin
-o, --output output string,default stdout
-h, --help usageexample
#nv_cli_creat_flat_cpp_ns -n PROJNAME
//PASTE JSON CFG HERE:
{
ns0: {
ns1:{
ns2:{}
}
},
nsa:{
nsa0:{},
nsa1:{}
}
}
// press ctrl+D:
#ifndef NV_PR_NS_H
#define NV_PR_NS_H
namespace ns0 { namespace ___pr_ns = ::ns0 ; }; //parent 和自己一样表示 parent 是全局 ::
namespace ns0::ns1 { namespace ___pr_ns = ::ns0 ; };
namespace ns0::ns1::ns2 { namespace ___pr_ns = ::ns0::ns1; };
namespace nsa { namespace ___pr_ns = ::nsa ; }; //parent 和自己一样表示 parent 是全局 ::
namespace nsa::nsa0 { namespace ___pr_ns = ::nsa ; };
namespace nsa::nsa1 { namespace ___pr_ns = ::nsa ; };
#endifLICENSE
- ISC
