Changeset 13892 for trunk


Ignore:
Timestamp:
05/25/12 20:42:18 (13 years ago)
Author:
tbretz
Message:
Remove the path from the dimscripts file name.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/smartfact.cc

    r13890 r13892  
    2222#include "HeadersBIAS.h"
    2323#include "HeadersFTM.h"
     24
     25#include <boost/filesystem.hpp>
    2426
    2527using namespace std;
     
    534536            ctrl.Handler(d);
    535537
    536             const string msg = ctrl.shortmsg+"<br>"+ctrl.file;
     538#if BOOST_VERSION < 104600
     539            const string file = boost::filesystem::path(ctrl.file).filename();
     540#else
     541            const string file = boost::filesystem::path(ctrl.file).filename().string();
     542#endif
     543
     544            const string msg = ctrl.shortmsg+"<br>"+file;
    537545            HandleControlMessageImp(Event(d, msg.data(), msg.length()+1));
    538546        }
Note: See TracChangeset for help on using the changeset viewer.