VTK
|
maintain a list of text codecs and return instances More...
#include <vtkTextCodecFactory.h>
Public Types | |
typedef vtkObject | Superclass |
typedef vtkTextCodec *(* | CreateFunction )() |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkTextCodecFactory * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkTextCodecFactory * | SafeDownCast (vtkObjectBase *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 | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkTextCodecFactory () | |
~vtkTextCodecFactory () |
maintain a list of text codecs and return instances
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 std::vector<unsigned char>
Definition at line 46 of file vtkTextCodecFactory.h.
Reimplemented from vtkObject.
Definition at line 49 of file vtkTextCodecFactory.h.
typedef vtkTextCodec*(* vtkTextCodecFactory::CreateFunction)() |
Type for Creation callback.
Definition at line 54 of file vtkTextCodecFactory.h.
vtkTextCodecFactory::vtkTextCodecFactory | ( | ) | [protected] |
vtkTextCodecFactory::~vtkTextCodecFactory | ( | ) | [protected] |
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkTextCodecFactory::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
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.