Changeset 15188
- Timestamp:
- 03/30/13 12:20:19 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/StateMachineDimControl.cc
r15147 r15188 550 550 // fVerbosity = 90; 551 551 552 const boost::filesystem::path path(conf.GetName()); 553 const string fname = path.filename().string(); 552 #if BOOST_VERSION < 104600 553 const string fname = boost::filesystem::path(conf.GetName()).filename(); 554 #else 555 const string fname = boost::filesystem::path(conf.GetName()).filename().string(); 556 #endif 554 557 555 558 if (fname=="dimserver") -
trunk/FACT++/src/dimctrl.cc
r15111 r15188 1 1 #include "StateMachineDimControl.h" 2 2 3 #include "RemoteControl.h" 3 4 … … 8 9 #include "Main.h" 9 10 11 namespace fs = boost::filesystem; 12 10 13 template<class T> 11 14 int RunShell(Configuration &conf) 12 15 { 13 const boost::filesystem::path path(conf.GetName()); 14 const string fname = path.filename().string(); 16 #if BOOST_VERSION < 104600 17 const string fname = fs::path(conf.GetName()).filename(); 18 #else 19 const string fname = fs::path(conf.GetName()).filename().string(); 20 #endif 15 21 16 22 StateMachineDimControl::fIsServer = fname=="dimserver"; … … 20 26 void SetupConfiguration(Configuration &conf) 21 27 { 22 const boost::filesystem::path path(conf.GetName()); 23 const string fname = path.filename().string(); 28 #if BOOST_VERSION < 104600 29 const string fname = fs::path(conf.GetName()).filename(); 30 #else 31 const string fname = fs::path(conf.GetName()).filename().string(); 32 #endif 24 33 25 34 po::options_description control("Options ("+fname+")"); … … 108 117 throw runtime_error("--force-console must be used with --console/-c"); 109 118 110 const boost::filesystem::path path(conf.GetName()); 111 const string fname = path.filename().string(); 119 #if BOOST_VERSION < 104600 120 const string fname = fs::path(conf.GetName()).filename(); 121 #else 122 const string fname = fs::path(conf.GetName()).filename().string(); 123 #endif 112 124 113 125 if (fname=="dimserver" && !conf.Get<bool>("force-console"))
Note:
See TracChangeset
for help on using the changeset viewer.