00001 // $Id: ConsoleDir.cc 1771 2011-03-08 14:43:47Z tho $ 00002 // 00003 // Copyright (C) 2011 00004 // Fraunhofer (FOKUS) 00005 // Competence Center NETwork research (NET), St. Augustin, GERMANY 00006 // Thorsten Horstmann <tho@berlios.de> 00007 // 00008 // This program is free software; you can redistribute it and/or modify 00009 // it under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation; either version 2 of the License, or 00011 // (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with this program; if not, write to the 00020 // Free Software Foundation, Inc., 00021 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00026 #include "ConsoleDir.hh" 00027 #include "ConsoleDir.ih" 00028 00029 // Custom includes 00030 #include <senf/Utils/Console/ScopedDirectory.hh> 00031 #include <senf/Utils/Console/Sysdir.hh> 00032 00033 #define prefix_ 00034 //-///////////////////////////////////////////////////////////////////////////////////////////////// 00035 00036 prefix_ senf::console::ScopedDirectory<> & senf::scheduler::consoleDir() 00037 { 00038 return detail::ConsoleDirManager::instance().consoleDir(); 00039 } 00040 00041 prefix_ senf::console::ScopedDirectory<> & 00042 senf::scheduler::detail::ConsoleDirManager::consoleDir() 00043 { 00044 return consoleDir_(); 00045 } 00046 00047 prefix_ senf::scheduler::detail::ConsoleDirManager::ConsoleDirManager() 00048 { 00049 console::sysdir().add("scheduler", consoleDir_()); 00050 } 00051 00052 //-///////////////////////////////////////////////////////////////////////////////////////////////// 00053 #undef prefix_ 00054 00055 00056 // Local Variables: 00057 // mode: c++ 00058 // fill-column: 100 00059 // comment-column: 40 00060 // c-file-style: "senf" 00061 // indent-tabs-mode: nil 00062 // ispell-local-dictionary: "american" 00063 // compile-command: "scons -u test" 00064 // End: