Changeset 19185


Ignore:
Timestamp:
08/19/18 17:52:00 (6 years ago)
Author:
tbretz
Message:
Extract only the name of the program not the path
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/FACT++/src/fits2sql.cc

    r19181 r19185  
     1#include <boost/regex.hpp>
     2#include <boost/filesystem.hpp>
    13#include <boost/algorithm/string/join.hpp>
    2 #include <boost/regex.hpp>
    34
    45#include "Database.h"
     
    1112
    1213using namespace std;
     14namespace fs = boost::filesystem;
    1315
    1416// ------------------------------------------------------------------------
     
    600602    if (!row_format.empty())
    601603        query += "ROW_FORMAT="+row_format+"\n";
    602     query += "COMMENT='created by "+conf.GetName()+"'\n";
     604    query += "COMMENT='created by "+fs::path(conf.GetName()).filename().string()+"'\n";
    603605
    604606
  • TabularUnified trunk/FACT++/src/root2sql.cc

    r19181 r19185  
     1#include <boost/regex.hpp>
     2#include <boost/filesystem.hpp>
    13#include <boost/algorithm/string/join.hpp>
    2 #include <boost/regex.hpp>
    34
    45#include "Database.h"
     
    1516
    1617using namespace std;
     18namespace fs = boost::filesystem;
    1719
    1820// ------------------------------------------------------------------------
     
    637639    if (!row_format.empty())
    638640        query += "ROW_FORMAT="+row_format+"\n";
    639     query += "COMMENT='created by "+conf.GetName()+"'\n";
     641    query += "COMMENT='created by "+fs::path(conf.GetName()).filename().string()+"'\n";
    640642
    641643    // FIXME: Can we omit the catching to be able to print the
Note: See TracChangeset for help on using the changeset viewer.