FDO API Reference Feature Data Objects

Disposable.h

Go to the documentation of this file.
00001 #ifndef FDO_DISPOSABLE_H_
00002 #define FDO_DISPOSABLE_H_
00003 // 
00004 
00005 //
00006 // Copyright (C) 2004-2006  Autodesk, Inc.
00007 // 
00008 // This library is free software; you can redistribute it and/or
00009 // modify it under the terms of version 2.1 of the GNU Lesser
00010 // General Public License as published by the Free Software Foundation.
00011 // 
00012 // This library is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 // Lesser General Public License for more details.
00016 // 
00017 // You should have received a copy of the GNU Lesser General Public
00018 // License along with this library; if not, write to the Free Software
00019 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 //
00021 
00022 #include <Common/IDisposable.h>
00023 
00024 /// \cond DOXYGEN-IGNORE
00025 /// \brief
00026 /// FdoDisposable is a default implementor for the FdoIDisposable interface.
00027 /// It simply deletes itself
00028 class FdoDisposable : public virtual FdoIDisposable
00029 {
00030 protected:
00031     /// \brief
00032     /// Deletes myself
00033     /// 
00034     FDO_API_COMMON virtual void Dispose()
00035     {
00036         delete this;
00037     }
00038 };
00039 /// \endcond
00040 
00041 #endif
00042 
00043 

Comments or suggestions? Send us feedback.