Proxy.cpp

Go to the documentation of this file.
00001 /*************** <auto-copyright.pl BEGIN do not edit this line> **************
00002  *
00003  * VR Juggler is (C) Copyright 1998-2005 by Iowa State University
00004  *
00005  * Original Authors:
00006  *   Allen Bierbaum, Christopher Just,
00007  *   Patrick Hartling, Kevin Meinert,
00008  *   Carolina Cruz-Neira, Albert Baker
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Library General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Library General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Library General Public
00021  * License along with this library; if not, write to the
00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00023  * Boston, MA 02111-1307, USA.
00024  *
00025  * -----------------------------------------------------------------
00026  * File:          $RCSfile$
00027  * Date modified: $Date: 2006-12-09 13:42:12 -0600 (Sat, 09 Dec 2006) $
00028  * Version:       $Revision: 19596 $
00029  * -----------------------------------------------------------------
00030  *
00031  *************** <auto-copyright.pl END do not edit this line> ***************/
00032 
00033 #include <gadget/gadgetConfig.h>
00034 
00035 #include <vpr/Util/Debug.h>
00036 #include <jccl/Config/ConfigElement.h>
00037 
00038 #include <gadget/Type/Proxy.h>
00039 
00040 
00041 namespace gadget
00042 {
00043 
00044 Proxy::Proxy()
00045    : mName("")
00046    , mStupefied(true)
00047    , mNeedUpdate(true)
00048 {
00049    /* Do nothing. */ ;
00050 }
00051 
00052 Proxy::~Proxy()
00053 {
00054    /* Do nothing. */ ;
00055 }
00056 
00057 bool Proxy::config(jccl::ConfigElementPtr element)
00058 {
00059    mName = element->getFullName();
00060    return true;
00061 }
00062 
00063 bool Proxy::isStupified() const
00064 {
00065    vprDEBUG(vprDBG_ALL, vprDBG_WARNING_LVL)
00066       << clrOutBOLD(clrYELLOW, "NOTICE:")
00067       << " gadget::Proxy::isStupified() has been deprecated." << std::endl;
00068    vprDEBUG_NEXTnl(vprDBG_ALL, vprDBG_WARNING_LVL)
00069       << "Use gadget::Proxy::isStupefied() instead." << std::endl
00070       << vprDEBUG_FLUSH;
00071    return isStupefied();
00072 }
00073 
00074 void Proxy::stupify(const bool newState)
00075 {
00076    vprDEBUG(vprDBG_ALL, vprDBG_WARNING_LVL)
00077       << clrOutBOLD(clrYELLOW, "NOTICE:")
00078       << " gadget::Proxy::stupify() has been deprecated." << std::endl;
00079    vprDEBUG_NEXTnl(vprDBG_ALL, vprDBG_WARNING_LVL)
00080       << "Use gadget::Proxy::stupefy() instead." << std::endl
00081       << vprDEBUG_FLUSH;
00082    stupefy(newState);
00083 }
00084 
00085 } // end namespace

Generated on Thu Jan 4 10:41:56 2007 for Gadgeteer by  doxygen 1.5.1