Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

vtkFileType.h

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 * 00003 * $Id: vtkFileType.h,v 1.3 2004/08/10 07:37:22 xpxqx Exp $ 00004 * 00005 * Copyright (c) 2004 Sean McInerney 00006 * All rights reserved. 00007 * 00008 * See Copyright.txt or http://vtkextensions.sourceforge.net/Copyright.html 00009 * for details. 00010 * 00011 * This software is distributed WITHOUT ANY WARRANTY; without even 00012 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 * PURPOSE. See the above copyright notice for more information. 00014 * 00015 */ 00016 #ifndef VTK_FILE_TYPE_H_ 00017 # define VTK_FILE_TYPE_H_ 00018 # include "vtkExtensionsIOConfigure.h" // vtkExtensions configuration 00019 # include "vtkExtensionsTypes.h" // vtkExtensions type 00020 # include "vtkFileTypeEnum.h" // vtkExtensions file types 00021 00022 VTK_EXTENSIONS_IO_NAMESPACE_BEGIN 00023 00035 class vtkFileTypeMap; 00036 00037 class VTK_EXTENSIONS_IO_EXPORT vtkFileType 00038 { 00039 public: 00048 static int SuffixToFileType (const char* key, const int parse = 0); 00049 00060 static const char* FileTypeToSuffix (const int ftype); 00061 00072 static int FileTypeToDataType (const int ftype); 00073 00085 static const char* FileTypeToDescription (const int ftype); 00086 00088 static vtkFileTypeMap* GetMap (void); 00089 00090 protected: 00093 static void ClassInitialize (void); 00094 static void ClassFinalize (void); 00097 //BTX 00098 public: 00101 class Init 00102 { 00103 public: 00104 Init (void); 00105 ~Init(); 00106 private: 00107 static long TranslationUnits; 00108 friend class vtkFileType; 00109 }; 00110 00111 friend class Init; 00113 //ETX 00114 00115 private: 00122 vtkFileType (void); 00123 ~vtkFileType(); 00124 vtkFileType (const vtkFileType&); 00125 void operator= (const vtkFileType&); 00127 }; 00128 00129 # ifndef VTK_FILE_TYPE_INITIALIZED_ 00130 # define VTK_FILE_TYPE_INITIALIZED_ 00131 00134 static vtkFileType::Init vtkFileTypeInitInstance; 00135 # endif /* VTK_FILE_TYPE_INITIALIZED_ */ 00136 00137 VTK_EXTENSIONS_IO_NAMESPACE_END 00138 00139 #endif /* VTK_FILE_TYPE_H_ */ 00140 /* 00141 * End of: $Id: vtkFileType.h,v 1.3 2004/08/10 07:37:22 xpxqx Exp $. 00142 * 00143 */

Generated on Tue Aug 10 03:37:39 2004 for vtkExtensions by doxygen 1.3.7