X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FScheduler%2FConsoleDir.cc;fp=senf%2FScheduler%2FConsoleDir.cc;h=ac0d2a971f55d834006bc875ce7bccca0f00e7b2;hb=57daeae6f2e924ce3f16f9677c3474f531cba9e5;hp=0000000000000000000000000000000000000000;hpb=93d9568d448749dc187e7622b733a4a3caa319df;p=senf.git diff --git a/senf/Scheduler/ConsoleDir.cc b/senf/Scheduler/ConsoleDir.cc new file mode 100644 index 0000000..ac0d2a9 --- /dev/null +++ b/senf/Scheduler/ConsoleDir.cc @@ -0,0 +1,64 @@ +// $Id$ +// +// Copyright (C) 2011 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Thorsten Horstmann +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +/** \file + \brief Scheduler ConsoleDir non-inline non-template implementation */ + +#include "ConsoleDir.hh" +#include "ConsoleDir.ih" + +// Custom includes +#include +#include + +#define prefix_ +//-///////////////////////////////////////////////////////////////////////////////////////////////// + +prefix_ senf::console::ScopedDirectory<> & senf::scheduler::consoleDir() +{ + return detail::ConsoleDirManager::instance().consoleDir(); +} + +prefix_ senf::console::ScopedDirectory<> & +senf::scheduler::detail::ConsoleDirManager::consoleDir() +{ + return consoleDir_(); +} + +prefix_ senf::scheduler::detail::ConsoleDirManager::ConsoleDirManager() +{ + console::sysdir().add("scheduler", consoleDir_()); +} + +//-///////////////////////////////////////////////////////////////////////////////////////////////// +#undef prefix_ + + +// Local Variables: +// mode: c++ +// fill-column: 100 +// comment-column: 40 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// End: