const char* ossie::spd_rel_file(const char* spdFile, const char* name, std::string& fileName) { fs::path spdPath(spdFile); fs::path filePath = spdPath.branch_path() / name; fileName = filePath.string(); return fileName.c_str(); }
const char * ossieSupport::spd_rel_file(const char *spdFile, const char *name, std::string &fileName) { DEBUG(9, spd_rel_file, "Called with spdFile: " << spdFile << ", name: " << name); fs::path spdPath(spdFile); fs::path filePath = spdPath.branch_path() / name; fileName = filePath.string(); DEBUG(9, spd_rel_file, "Result: " << fileName); return fileName.c_str(); }