00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFEMInitialization.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003-09-10 14:29:41 $ 00007 Version: $Revision: 1.3 $ 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 __itkFEMInitialization_h 00019 #define __itkFEMInitialization_h 00020 00029 namespace itk { 00030 namespace fem { 00031 00032 00033 00034 00044 class FEMInitialization 00045 { 00046 static unsigned int count; 00047 public: 00048 FEMInitialization(); 00049 ~FEMInitialization(); 00050 }; 00052 00053 /* 00054 * Trigger constructor and destructor calls in each compilation unit. 00055 * Unnamed namespace are used to avoid name collisions. 00056 */ 00057 namespace { 00058 static FEMInitialization FEMInitialization_var; 00059 } 00060 00061 00062 00063 00064 }} // end namespace itk::fem 00065 00066 #endif // #ifndef __itkFEMInitialization_h 00067