Changeset 11056
- Timestamp:
- 06/18/11 12:12:23 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/drivectrl.cc
r11043 r11056 867 867 } 868 868 869 /* 869 870 template<class S, class T> 870 871 int RunDim(Configuration &conf) … … 872 873 WindowLog wout; 873 874 874 /*875 static Test shell(conf.GetName().c_str(), conf.Get<int>("console")!=1);876 877 WindowLog &win = shell.GetStreamIn();878 WindowLog &wout = shell.GetStreamOut();879 */880 875 ReadlineColor::PrintBootMsg(wout, conf.GetName(), false); 881 876 … … 892 887 io_service.Run(); 893 888 894 /*895 shell.SetReceiver(io_service);896 897 boost::thread t(boost::bind(RunThread, &io_service));898 // boost::thread t(boost::bind(&StateMachineDrive<S>::Run, &io_service));899 900 shell.Run(); // Run the shell901 io_service.Stop(); // Signal Loop-thread to stop902 // io_service.Close(); // Obsolete, done by the destructor903 904 // Wait until the StateMachine has finished its thread905 // before returning and destroying the dim objects which might906 // still be in use.907 t.join();908 */909 910 889 return 0; 911 890 } 891 */ 912 892 913 893 template<class T, class S, class R> … … 1061 1041 { 1062 1042 if (conf.Get<bool>("no-dim")) 1063 return Run Dim<StateMachine, ConnectionDrive>(conf);1043 return RunShell<LocalStream, StateMachine, ConnectionDrive>(conf); 1064 1044 else 1065 return Run Dim<StateMachineDim, ConnectionDimDrive>(conf);1045 return RunShell<LocalStream, StateMachineDim, ConnectionDimDrive>(conf); 1066 1046 } 1067 1047 // Cosole access w/ and w/o Dim -
trunk/FACT++/src/fadctrl.cc
r11043 r11056 1408 1408 } 1409 1409 1410 /* 1410 1411 template<class S> 1411 1412 int RunDim(Configuration &conf) 1412 1413 { 1413 /*1414 initscr(); // Start curses mode1415 cbreak(); // Line buffering disabled, Pass on1416 intrflush(stdscr, FALSE);1417 start_color(); // Initialize ncurses colors1418 use_default_colors(); // Assign terminal default colors to -11419 for (int i=1; i<8; i++)1420 init_pair(i, i, -1); // -1: def background1421 scrollok(stdscr, true);1422 */1423 1424 1414 WindowLog wout; 1425 1415 1426 1416 ReadlineColor::PrintBootMsg(wout, conf.GetName(), false); 1427 1417 1428 //log.SetWindow(stdscr);1429 1418 if (conf.Has("log")) 1430 1419 if (!wout.OpenLogFile(conf.Get<string>("log"))) … … 1441 1430 return 0; 1442 1431 } 1432 */ 1443 1433 1444 1434 template<class T, class S> … … 1584 1574 { 1585 1575 if (conf.Get<bool>("no-dim")) 1586 return Run Dim<StateMachine>(conf);1576 return RunShell<LocalStream, StateMachine>(conf); 1587 1577 else 1588 return Run Dim<StateMachineDim>(conf);1578 return RunShell<LocalStream, StateMachineDim>(conf); 1589 1579 } 1590 1580 // Cosole access w/ and w/o Dim -
trunk/FACT++/src/ftmctrl.cc
r11043 r11056 1777 1777 } 1778 1778 1779 /* 1779 1780 template<class S, class T> 1780 1781 int RunDim(Configuration &conf) … … 1782 1783 WindowLog wout; 1783 1784 1784 /*1785 static Test shell(conf.GetName().c_str(), conf.Get<int>("console")!=1);1786 1787 WindowLog &win = shell.GetStreamIn();1788 WindowLog &wout = shell.GetStreamOut();1789 */1790 1791 1785 ReadlineColor::PrintBootMsg(wout, conf.GetName(), false); 1792 1793 1786 1794 1787 if (conf.Has("log")) … … 1804 1797 io_service.Run(); 1805 1798 1806 /*1807 shell.SetReceiver(io_service);1808 1809 boost::thread t(boost::bind(RunThread, &io_service));1810 // boost::thread t(boost::bind(&StateMachineFTM<S>::Run, &io_service));1811 1812 shell.Run(); // Run the shell1813 io_service.Stop(); // Signal Loop-thread to stop1814 // io_service.Close(); // Obsolete, done by the destructor1815 1816 // Wait until the StateMachine has finished its thread1817 // before returning and destroying the dim objects which might1818 // still be in use.1819 t.join();1820 */1821 1822 1799 return 0; 1823 1800 } 1801 */ 1824 1802 1825 1803 template<class T, class S, class R> … … 1976 1954 { 1977 1955 if (conf.Get<bool>("no-dim")) 1978 return Run Dim<StateMachine, ConnectionFTM>(conf);1956 return RunShell<LocalStream, StateMachine, ConnectionFTM>(conf); 1979 1957 else 1980 return Run Dim<StateMachineDim, ConnectionDimFTM>(conf);1958 return RunShell<LocalStream, StateMachineDim, ConnectionDimFTM>(conf); 1981 1959 } 1982 1960 // Cosole access w/ and w/o Dim -
trunk/FACT++/src/scheduler.cc
r11043 r11056 738 738 } 739 739 740 /* 740 741 template<class S> 741 742 int RunDim(Configuration &conf) … … 760 761 return 0; 761 762 } 763 */ 762 764 763 765 template<class T, class S> … … 912 914 { 913 915 if (conf.Get<bool>("no-dim")) 914 return Run Dim<StateMachine>(conf);916 return RunShell<LocalStream, StateMachine>(conf); 915 917 else 916 return Run Dim<StateMachineDim>(conf);918 return RunShell<LocalStream, StateMachineDim>(conf); 917 919 } 918 920 // Cosole access w/ and w/o Dim
Note:
See TracChangeset
for help on using the changeset viewer.