X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FVariables.cti;h=872d7425a71bc48a72672a0ffa432f91ff9bc849;hb=1342c5d49ca8bd523c9fdf7d89b40448cdfd394b;hp=80d5d7340c2593bdf1d2c72607f8212d39542045;hpb=f13780e9e4da7df981d6f6542fbdc714beb34765;p=senf.git diff --git a/senf/Utils/Console/Variables.cti b/senf/Utils/Console/Variables.cti index 80d5d73..872d742 100644 --- a/senf/Utils/Console/Variables.cti +++ b/senf/Utils/Console/Variables.cti @@ -1,24 +1,29 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY -// Stefan Bund // -// 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. +// The contents of this file are subject to the Fraunhofer FOKUS Public License +// Version 1.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// http://senf.berlios.de/license.html // -// 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. +// The Fraunhofer FOKUS Public License Version 1.0 is based on, +// but modifies the Mozilla Public License Version 1.1. +// See the full license text for the amendments. // -// 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. +// Software distributed under the License is distributed on an "AS IS" basis, +// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +// for the specific language governing rights and limitations under the License. +// +// The Original Code is Fraunhofer FOKUS code. +// +// The Initial Developer of the Original Code is Fraunhofer-Gesellschaft e.V. +// (registered association), Hansastraße 27 c, 80686 Munich, Germany. +// All Rights Reserved. +// +// Contributor(s): +// Stefan Bund /** \file \brief Variables inline template implementation */ @@ -28,9 +33,9 @@ // Custom includes #define prefix_ inline -///////////////////////////////cti.p/////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// // senf::console::detail::QueryVariable template @@ -52,7 +57,7 @@ prefix_ Variable const & senf::console::detail::QueryVariable::operato return var_; } -/////////////////////////////////////////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// // senf::console::detail::SetVariable template @@ -83,7 +88,7 @@ prefix_ void senf::console::detail::SetVariable::operator()(Variable c var_ = value; } -/////////////////////////////////////////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// // senf::console::ConstVariableFactory template @@ -128,7 +133,7 @@ ConstVariableFactory(Variable const & var) : queryOverload_ (detail::QueryVariable::create(var)) {} -/////////////////////////////////////////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// // senf::console::VariableFactory template @@ -151,7 +156,7 @@ template prefix_ typename senf::console::factory::VariableFactory senf::console::factory::VariableFactory::onChange(OnChangeHandler handler) { - setOverload_->function( + setOverload_->function( boost::bind(detail::SetVariable(var_, handler),_2)); return *this; } @@ -193,12 +198,12 @@ senf::console::factory::VariableFactory::create(DirectoryNode & dir, template prefix_ senf::console::factory::VariableFactory::VariableFactory(Variable & var) - : ConstVariableFactory (var), + : ConstVariableFactory (var), setOverload_ (detail::SetVariable::create(var)), var_ (var) {} -/////////////////////////////////////////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// template prefix_ senf::console::factory::VariableFactory @@ -228,7 +233,7 @@ senf::console::factory::Variable(boost::reference_wrapper var) return ConstVariableFactory(var); } -///////////////////////////////cti.e/////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_