00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
#ifndef VTK_FILE_TYPE_H_
00017
# define VTK_FILE_TYPE_H_
00018
# include "vtkExtensionsIOConfigure.h"
00019
# include "vtkExtensionsTypes.h"
00020
# include "vtkFileTypeEnum.h"
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
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
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
00136
00137
VTK_EXTENSIONS_IO_NAMESPACE_END
00138
00139
#endif
00140
00141
00142
00143