• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

Relay.h

Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software
00003 //   Foundation, Inc
00004 // 
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 #ifndef GNASH_RELAY_H
00020 #define GNASH_RELAY_H
00021 
00022 #include <boost/noncopyable.hpp>
00023 
00024 namespace gnash {
00025     class as_object;
00026 }
00027 
00028 namespace gnash {
00029 
00031 //
00035 //
00038 //
00043 //
00046 //
00049 class Relay : boost::noncopyable
00050 {
00051 public:
00052     virtual ~Relay() {};
00053 
00055     virtual void setReachable() {}
00056 };
00057 
00058 
00060 //
00063 //
00067 //
00070 class ActiveRelay : public Relay
00071 {
00072 public:
00073 
00074     explicit ActiveRelay(as_object* owner)
00075         :
00076         _owner(owner)
00077     {}
00078 
00080     virtual ~ActiveRelay();
00081 
00083     virtual void update() = 0;
00084 
00086     //
00088     virtual void setReachable();
00089 
00091     as_object& owner() const {
00092         return *_owner;
00093     }
00094 
00095 protected:
00096 
00098     //
00101     virtual void markReachableResources() const {}
00102 
00103 private:
00104 
00106     //
00109     as_object* _owner;
00110 
00111 };
00112 
00113 } // namespace gnash
00114 
00115 #endif

Generated on Fri Mar 16 2012 15:46:11 for Gnash by  doxygen 1.7.1