\brief get parametre file, given term/param name
| 83 | |
| 84 | // \brief get parametre file, given term/param name |
| 85 | std::string dnnc::cppCodeGen::paramFile(std::string param_name) { |
| 86 | // check if there is a param file to load in the bundle dir. |
| 87 | struct stat buffer; |
| 88 | std::string param_file = |
| 89 | (_bundleDir.size() ? _bundleDir + FS_PATH_SEPARATOR : "") + param_name; |
| 90 | |
| 91 | return (stat(param_file.c_str(), &buffer) == 0) ? param_file : ""; |
| 92 | } |
| 93 | |
| 94 | std::string dnnc::cppCodeGen::nodeName(node *n) { |
| 95 | if (n->ntype() == node::OPERATOR) |