00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc 00008 * 123 Front Street West, Suite 1401 00009 * Toronto, Ontario 00010 * Canada M5J 2M2 00011 * 416-504-9876 00012 * 00013 * NAME: PRM_ParmNameMap.h ( PRM Library, C++) 00014 * 00015 * COMMENTS: A symbol table used to perform parameter name mapping when 00016 * loading old parameters. This is really just a symbol table 00017 * which knows how to properly destruct itself, and is cheaper to 00018 * construct, destruct since the table is only created if there's 00019 * a mapping created. 00020 */ 00021 00022 #ifndef __PRM_ParmNameMap__ 00023 #define __PRM_ParmNameMap__ 00024 00025 #include "PRM_API.h" 00026 00027 class UT_SymbolTable; 00028 00029 class PRM_API PRM_ParmNameMap { 00030 public: 00031 PRM_ParmNameMap() { myTable = 0; } 00032 ~PRM_ParmNameMap(); 00033 00034 void addMap(const char *oldname, 00035 const char *newname); 00036 const char *findName(const char *oldname) const; 00037 00038 private: 00039 UT_SymbolTable *myTable; 00040 }; 00041 00042 #endif 00043
1.5.9