mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-24 11:11:02 -07:00
21 lines
390 B
Bash
Executable File
21 lines
390 B
Bash
Executable File
#!/bin/sh
|
|
echo "#include <string>"
|
|
echo "#include <map>"
|
|
echo "class ConfigProto;"
|
|
|
|
word=$1
|
|
shift
|
|
|
|
for a in "$@"; do
|
|
echo "extern const ConfigProto ${word}_${a}_pb;"
|
|
done
|
|
|
|
echo "extern const std::map<std::string, const ConfigProto*> ${word};"
|
|
echo "const std::map<std::string, const ConfigProto*> ${word} = {"
|
|
for a in "$@"; do
|
|
echo " { \"${a}\", &${word}_${a}_pb },"
|
|
done
|
|
echo "};"
|
|
|
|
|