1 #include "bbstdMakeFileName.h"
2 #include "bbstdPackage.h"
3 #include "bbtkConfigurationFile.h"
8 BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,MakeFileName)
9 BBTK_USER_BLACK_BOX_IMPLEMENTATION(MakeFileName,bbtk::AtomicBlackBox);
11 void MakeFileName::bbUserConstructor()
13 bbSetInputDirectory("");
18 void MakeFileName::DoProcess()
20 std::string fileSep = bbtk::ConfigurationFile::GetInstance().Get_file_separator();
21 std::string fullFileName = bbGetInputDirectory();
22 if ( fullFileName.c_str()[fullFileName.size()-1] != '/' && fullFileName.c_str()[fullFileName.size()-1] != '\\' )
23 fullFileName += fileSep;
24 fullFileName += bbGetInputFile();
25 if ( bbGetInputExtent() != "")
26 if ( bbGetInputExtent()[0] != '.' )
28 fullFileName += bbGetInputExtent();
29 bbSetOutputOut( fullFileName );