OpenSpeech Browser

Getting Started
Architecture Description
Integration Guide

Copyright (c) 1998-2001 SpeechWorks International, Inc. All Rights Reserved.



class VXIMapHolder

C++ wrapper class that makes it easier to work with VXIMaps

Documentation

C++ wrapper class that makes it easier to work with VXIMaps

Used correctly, this class can eliminate common memory leaks associated with VXIMap usage. For instance:

VXIMap * GenerateMapFromParams(void) { VXIMapHolder result; DoStuff(); // this code may throw an exception. return result.Release(); }

If an exception is raised by the DoStuff function, the map will be cleaned up automatically when the stack is unwound. Likewise, the calling code may benefit:

int Foo(void) { VXIMapHolder params(GenerateMapFromParams()); ProcessParams(params); // This code may throw an exception. return 0; }

If either an exception occurs or the function exits normally, the associated map will be freed.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.