Public Member Functions | Static Public Member Functions | Protected Member Functions

vtkKWEInformationKeyMap Class Reference

Map from string to information key instances. More...

#include <vtkKWEInformationKeyMap.h>

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

List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkKWEInformationKeyMap, vtkObject)
void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static vtkKWEInformationKeyMapNew ()
static void RegisterKey (vtkInformationKey *key)
static vtkInformationKeyFindKey (const char *name)
static vtkstd::string GetFullName (vtkInformationKey *key)
static void RemoveAllKeys ()

Protected Member Functions

 vtkKWEInformationKeyMap ()
 ~vtkKWEInformationKeyMap ()

Detailed Description

Map from string to information key instances.

This class is used to access information keys given a string in the form KeyLocation.KeyName. For example: vtkDataObject.DATA_OBJECT (note the lack of () at the end). You have to manually register the keys in the map before they can be accessed. Note that all of the key instances are stored using smart pointers. Make sure to call RemoveAllKeys() before exit to avoid leak warnings from vtkDebugLeaks.

Definition at line 46 of file vtkKWEInformationKeyMap.h.


Constructor & Destructor Documentation

vtkKWEInformationKeyMap::vtkKWEInformationKeyMap (  )  [protected]
vtkKWEInformationKeyMap::~vtkKWEInformationKeyMap (  )  [protected]

Member Function Documentation

static vtkKWEInformationKeyMap* vtkKWEInformationKeyMap::New (  )  [static]

Reimplemented from vtkObject.

vtkKWEInformationKeyMap::vtkTypeRevisionMacro ( vtkKWEInformationKeyMap  ,
vtkObject   
)
void vtkKWEInformationKeyMap::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkObject.

static void vtkKWEInformationKeyMap::RegisterKey ( vtkInformationKey key  )  [static]

Register a key with the map. The key will be KeyLocation::KeyName.

static vtkInformationKey* vtkKWEInformationKeyMap::FindKey ( const char *  name  )  [static]

Lookup a key instance registered with the map using its location and name.

static vtkstd::string vtkKWEInformationKeyMap::GetFullName ( vtkInformationKey key  )  [static]

Given a key instance, returns its name used to store it in the map. Implemented as: key->GetLocation() + "." + key->GetName()

static void vtkKWEInformationKeyMap::RemoveAllKeys (  )  [static]

Removes all keys from the map.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines