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

vtkFileTypeMap.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: vtkFileTypeMap.h,v 1.3 2004/08/10 07:37:23 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_MAP_H_ 00017 # define VTK_FILE_TYPE_MAP_H_ 00018 # include "vtkExtensionsIOConfigure.h" // vtkExtensions configuration 00019 # include "vtkExtensionsTypes.h" // vtkExtensions types 00020 # include "vtkExtensionsObject.h" 00021 00022 VTK_EXTENSIONS_IO_NAMESPACE_BEGIN 00023 00024 class vtkFileTypeMapInternal; 00025 00034 class VTK_EXTENSIONS_IO_EXPORT vtkFileTypeMap 00035 : public vtkExtensionsObject 00036 { 00037 public: 00038 static vtkFileTypeMap* New (void); 00039 vtkTypeRevisionMacro (vtkFileTypeMap, vtkExtensionsObject); 00040 void PrintSelf (ostream&, vtkIndent); 00041 00043 void SetTitle (const char* const& name); 00044 void GetTitle (const char* & name); 00045 00047 void InsertDefaults (void); 00048 00052 vtkstd_bool AddFileType (const char* const& key, 00053 vtkIntnType const& fileType, 00054 vtkstd_bool const& isFileName = true); 00055 00057 vtkstd_bool AddDataType (const char* const& key, 00058 vtkIntnType const& dataType, 00059 vtkstd_bool const& isFileName = true); 00060 00062 vtkstd_bool AddDescription (const char* const& key, 00063 const char* const& description, 00064 vtkstd_bool const& isFileName = true); 00065 00066 vtkstd_bool Add (const char* const& key, 00067 vtkIntnType const& fileType, 00068 vtkIntnType const& dataType, 00069 const char* const& description, 00070 vtkstd_bool const& isFileName = true); 00076 vtkstd_bool FindFileType (const char* const& key, 00077 vtkIntnType & fileType, 00078 vtkstd_bool const& isFileName = true); 00079 00081 vtkstd_bool FindDataType (vtkIntnType const& fileType, 00082 vtkIntnType & dataType); 00083 00085 vtkstd_bool FindDataType (const char* const& key, 00086 vtkIntnType & dataType, 00087 vtkstd_bool const& isFileName = true); 00088 00090 vtkstd_bool FindDescription (vtkIntnType const& fileType, 00091 const char* & description); 00092 00094 vtkstd_bool FindDescription (const char* const& key, 00095 const char* & description, 00096 vtkstd_bool const& isFileName = true); 00097 00098 vtkstd_bool Find (const char* const& key, 00099 vtkIntnType & fileType, 00100 vtkIntnType & dataType, 00101 const char* & description, 00102 vtkstd_bool const& isFileName = true); 00108 vtkstd_bool EraseFileType (const char* const& key, 00109 vtkstd_bool const& isFileName = true); 00110 00112 vtkstd_bool EraseDataType (const char* const& key, 00113 vtkstd_bool const& isFileName = true); 00114 00116 vtkstd_bool EraseDescription (const char* const& key, 00117 vtkstd_bool const& isFileName = true); 00118 00119 vtkstd_bool Erase (const char* const& key, 00120 vtkstd_bool const& isFileName = true); 00127 vtkstd_bool FindSuffix (vtkIntnType const& typeValue, 00128 const char* & suffix); 00129 00136 vtkstd_bool FindNextSuffix (const char* & suffix); 00137 00139 void Clear (void); 00140 00141 protected: 00142 vtkFileTypeMap (void); 00143 ~vtkFileTypeMap(); 00144 00145 private: 00146 vtkFileTypeMapInternal* Internal; 00147 00148 private: 00149 vtkFileTypeMap (const vtkFileTypeMap&); // Not implemented. 00150 void operator= (const vtkFileTypeMap&); // Not implemented. 00151 }; 00152 00153 VTK_EXTENSIONS_IO_NAMESPACE_END 00154 00155 #endif /* VTK_FILE_TYPE_MAP_H_ */ 00156 /* 00157 * End of: $Id: vtkFileTypeMap.h,v 1.3 2004/08/10 07:37:23 xpxqx Exp $. 00158 * 00159 */

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