VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkTextCodecFactory Class Reference

maintain a list of text codecs and return instances More...

#include <vtkTextCodecFactory.h>

Inheritance diagram for vtkTextCodecFactory:
Inheritance graph
[legend]
Collaboration diagram for vtkTextCodecFactory:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass
typedef vtkTextCodec *(* CreateFunction )()

Public Member Functions

virtual int IsA (const char *type)
vtkTextCodecFactoryNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkTextCodecFactorySafeDownCast (vtkObjectBase *o)
static vtkTextCodecFactoryNew ()
static vtkTextCodecCodecForName (const char *CodecName)
static vtkTextCodecCodecToHandle (istream &InputStream)
static void Initialize ()
static void RegisterCreateCallback (CreateFunction callback)
static void UnRegisterCreateCallback (CreateFunction callback)
static void UnRegisterAllCreateCallbacks ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkTextCodecFactory ()
 ~vtkTextCodecFactory ()

Detailed Description

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>

Thanks:
Thanks to Tim Shed from Sandia National Laboratories for his work on the concepts and to Marcus Hanwell and Jeff Baumes of Kitware for keeping me out of the weeds
See also:
vtkTextCodec

Definition at line 46 of file vtkTextCodecFactory.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 49 of file vtkTextCodecFactory.h.

Type for Creation callback.

Definition at line 54 of file vtkTextCodecFactory.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkObject.

virtual vtkObjectBase* vtkTextCodecFactory::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

Reimplemented from vtkObject.

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]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

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.

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.

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.


The documentation for this class was generated from the following file: