HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PRM_ParmNameMap.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: PRM_ParmNameMap.h ( PRM Library, C++)
7  *
8  * COMMENTS: A symbol table used to perform parameter name mapping when
9  * loading old parameters. This is really just a symbol table
10  * which knows how to properly destruct itself, and is cheaper to
11  * construct, destruct since the table is only created if there's
12  * a mapping created.
13  */
14 
15 #ifndef __PRM_ParmNameMap__
16 #define __PRM_ParmNameMap__
17 
18 #include "PRM_API.h"
19 #include <UT/UT_UniquePtr.h>
20 
21 class UT_StringHolder;
22 template<typename T> class UT_SymbolMap;
23 
25 {
26 public:
27  void addMap(const char *oldname,
28  const char *newname);
29  const char *findName(const char *oldname) const;
30 
31 private:
33 };
34 
35 #endif
36 
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
Definition: UT_UniquePtr.h:39
#define PRM_API
Definition: PRM_API.h:10