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: 2003/09/10 14:29:42 $
00007   Version:   $Revision: 1.17 $
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 
00028 
00029 
00030 
00041 class FEMLightObject
00042 #ifdef FEM_USE_SMART_POINTERS
00043 : public itk::LightObject
00044 #endif
00045 {
00046 
00052 #ifndef FEM_USE_SMART_POINTERS
00053   FEM_ABSTRACT_CLASS(FEMLightObject,FEMLightObject)
00054 #else
00055 
00059   FEM_ABSTRACT_CLASS(FEMLightObject,itk::LightObject)
00060 #endif
00061 
00062 public:
00067   typedef Self Baseclass;
00068 
00074   virtual Baseclass::Pointer Clone() const = 0;
00075 
00084   virtual int ClassID() const = 0;
00085 
00101   virtual void Read( std::istream& f, void* info );
00102 
00115   virtual void Write( std::ostream& f ) const;
00116 
00126   static FEMLightObject::Pointer CreateFromStream( std::istream& f, void *info );
00127 
00132   static void SkipWhiteSpace( std::istream& f );
00133 
00138   static const std::string whitespaces;
00139 
00140 
00141 #ifdef FEM_USE_SMART_POINTERS
00142 protected:  // If we're using smart pointers, constructors and destructors should be protected.
00143 #endif
00144 
00147   FEMLightObject() : GN(-1) {}
00148 
00152   virtual ~FEMLightObject() {}
00153 
00157   FEMLightObject(const FEMLightObject& o) { GN=o.GN; }
00158 
00159 
00160 public:
00168   int GN;
00169 
00170 };
00171 
00172 
00176 typedef FEMObjectFactory<FEMLightObject> FEMOF;
00177 
00178 
00179 }} // end namespace itk::fem
00180 
00181 #endif // #ifndef __itkFEMLightObject_h
00182 

Generated at Mon Mar 12 00:17:29 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000