static GemDylibHandle*open(const CPPExtern*obj, const std::string filename, const std::string extension) { const t_canvas*canvas=(obj)?(canvas=const_cast<CPPExtern*>(obj)->getCanvas()):0; const char*ext=extension.c_str(); std::string fullname=getFullfilename(canvas, filename.c_str(), ext); if(fullname.empty()) { fullname=getFullfilename(canvas, filename.c_str(), GemDylibHandle::defaultExtension.c_str()); } if(fullname.empty()) { std::string error="couldn't find '"; error+=filename; error+="'.'"; error+=ext; error+="'"; throw(GemException(error)); } return open(fullname); }
void printFileStruct(in_file_struct * in_fp){ fprintf(stdout,"Pathname = %s\n" "Basename = %s\n" "extension = %s\n" "fullFilename = %s\n" "getFullfilename = %s\n", in_fp->pathname, in_fp->basename, in_fp->extension, in_fp->fullFilename,getFullfilename(in_fp)); }