Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkFEMLightObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFEMLightObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-29 21:55:14 $
00007   Version:   $Revision: 1.18 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __itkFEMLightObject_h
00019 #define __itkFEMLightObject_h
00020 
00021 #include "itkFEMMacro.h"
00022 #include "itkFEMException.h"
00023 #include <iostream>
00024 
00025 namespace itk {
00026 namespace fem {
00027 
00038 class FEMLightObject
00039 #ifdef FEM_USE_SMART_POINTERS
00040 : public itk::LightObject
00041 #endif
00042 {
00043 
00049 #ifndef FEM_USE_SMART_POINTERS
00050   FEM_ABSTRACT_CLASS(FEMLightObject,FEMLightObject)
00051 #else
00052 
00056   FEM_ABSTRACT_CLASS(FEMLightObject,itk::LightObject)
00057 #endif
00058 
00059 public:
00064   typedef Self Baseclass;
00065 
00071   virtual Baseclass::Pointer Clone() const = 0;
00072 
00081   virtual int ClassID() const = 0;
00082 
00098   virtual void Read( std::istream& f, void* info );
00099 
00112   virtual void Write( std::ostream& f ) const;
00113 
00123   static FEMLightObject::Pointer CreateFromStream( std::istream& f, void *info );
00124 
00129   static void SkipWhiteSpace( std::istream& f );
00130 
00135   static const std::string whitespaces;
00136 
00137 
00138 #ifdef FEM_USE_SMART_POINTERS
00139 protected:  // If we're using smart pointers, constructors and destructors should be protected.
00140 #endif
00141 
00144   FEMLightObject() : GN(-1) {}
00145 
00149   virtual ~FEMLightObject() {}
00150 
00154   FEMLightObject(const FEMLightObject& o) { GN=o.GN; }
00155 
00156 
00157 public:
00165   int GN;
00166 
00167 };
00168 
00169 
00173 typedef FEMObjectFactory<FEMLightObject> FEMOF;
00174 
00175 
00176 }} // end namespace itk::fem
00177 
00178 #endif // #ifndef __itkFEMLightObject_h
00179 

Generated at Mon Jul 12 2010 18:19:18 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000