Map from string to information key instances. More...
#include <vtkKWEInformationKeyMap.h>


Public Member Functions | |
| vtkTypeRevisionMacro (vtkKWEInformationKeyMap, vtkObject) | |
| void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
| static vtkKWEInformationKeyMap * | New () |
| static void | RegisterKey (vtkInformationKey *key) |
| static vtkInformationKey * | FindKey (const char *name) |
| static vtkstd::string | GetFullName (vtkInformationKey *key) |
| static void | RemoveAllKeys () |
Protected Member Functions | |
| vtkKWEInformationKeyMap () | |
| ~vtkKWEInformationKeyMap () | |
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.
| vtkKWEInformationKeyMap::vtkKWEInformationKeyMap | ( | ) | [protected] |
| vtkKWEInformationKeyMap::~vtkKWEInformationKeyMap | ( | ) | [protected] |
| 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.
1.7.1