00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
#ifndef VTK_FILE_TYPE_MAP_H_
00017
# define VTK_FILE_TYPE_MAP_H_
00018
# include "vtkExtensionsIOConfigure.h"
00019
# include "vtkExtensionsTypes.h"
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&);
00150
void operator= (
const vtkFileTypeMap&);
00151 };
00152
00153
VTK_EXTENSIONS_IO_NAMESPACE_END
00154
00155
#endif
00156
00157
00158
00159