#include <vtkTextCodecFactory.h>
A single class to hold registered codecs and return instances of them based on either a decriptive name (UTF16 or latin-1) or by asking who can handle a given vtkstd::vector<unsigned char>
Definition at line 45 of file vtkTextCodecFactory.h.
Public Types | |
typedef vtkObject | Superclass |
typedef vtkTextCodec *(* | CreateFunction )() |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkTextCodecFactory * | SafeDownCast (vtkObject *o) |
static vtkTextCodecFactory * | New () |
static vtkTextCodec * | CodecForName (const char *CodecName) |
static vtkTextCodec * | CodecToHandle (istream &InputStream) |
static void | Initialize () |
static void | RegisterCreateCallback (CreateFunction callback) |
static void | UnRegisterCreateCallback (CreateFunction callback) |
static void | UnRegisterAllCreateCallbacks () |
Protected Member Functions | |
vtkTextCodecFactory () | |
~vtkTextCodecFactory () |
typedef vtkTextCodec*(* vtkTextCodecFactory::CreateFunction)() |
Type for Creation callback.
vtkTextCodecFactory::vtkTextCodecFactory | ( | ) | [protected] |
vtkTextCodecFactory::~vtkTextCodecFactory | ( | ) | [protected] |
virtual const char* vtkTextCodecFactory::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkObject.
static int vtkTextCodecFactory::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
virtual int vtkTextCodecFactory::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
static vtkTextCodecFactory* vtkTextCodecFactory::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkObject.
static vtkTextCodecFactory* vtkTextCodecFactory::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
void vtkTextCodecFactory::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
static void vtkTextCodecFactory::RegisterCreateCallback | ( | CreateFunction | callback | ) | [static] |
Provides mechanism to register/unregister additional callbacks to create concrete subclasses of vtkTextCodecFactory to handle different protocols. The registered callbacks are tried in the order they are registered.
static void vtkTextCodecFactory::UnRegisterCreateCallback | ( | CreateFunction | callback | ) | [static] |
Provides mechanism to register/unregister additional callbacks to create concrete subclasses of vtkTextCodecFactory to handle different protocols. The registered callbacks are tried in the order they are registered.
static void vtkTextCodecFactory::UnRegisterAllCreateCallbacks | ( | ) | [static] |
Provides mechanism to register/unregister additional callbacks to create concrete subclasses of vtkTextCodecFactory to handle different protocols. The registered callbacks are tried in the order they are registered.
static vtkTextCodec* vtkTextCodecFactory::CodecForName | ( | const char * | CodecName | ) | [static] |
Given a codec/storage name try to find one of our registered codecs that can handle it. This is non-deterministic, very messy and should not be your first thing to try. The registered callbacks are tried in the order they are registered.
static vtkTextCodec* vtkTextCodecFactory::CodecToHandle | ( | istream & | InputStream | ) | [static] |
Given a snippet of the stored data name try to find one of our registered codecs that can handle transforming it into unicode. The registered callbacks are tried in the order they are registered.
static void vtkTextCodecFactory::Initialize | ( | ) | [static] |
Initialize core text codecs - needed for the static compilation case.