VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
symbolStore.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2004 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef symbolStore_H_
7 #define symbolStore_H_
8 
10 #include <vlutil/vlConfig.h>
11 #include <string>
12 #include <vector>
13 #include <map>
14 #include <tbb/concurrent_hash_map.h>
15 #include <tbb/concurrent_vector.h>
16 #include <tbb/spin_mutex.h>
17 
21 {
22 public:
23 
24  DtSymbolStore();
25  ~DtSymbolStore();
26 
27  unsigned int getSymbol(const char* str);
28 
29  const char* getString(unsigned int sym);
30 
31 private:
32 
33  typedef tbb::concurrent_hash_map<std::string, unsigned int> HashMap;
35  typedef tbb::concurrent_vector<std::string> StringList;
36  //std::vector<std::string> myIndex;
38  tbb::spin_mutex myAddSymbolMutex;
39 };
40 
41 #endif
42 
43 
44 
#define DT_DLL_readerWriter
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: readerWriterDefines.h:34
tbb::spin_mutex myAddSymbolMutex
Definition: symbolStore.h:38
tbb::concurrent_vector< std::string > StringList
Definition: symbolStore.h:35
tbb::concurrent_hash_map< std::string, unsigned int > HashMap
Definition: symbolStore.h:33
The DtSymbolStore class is used to store string representations. See DtSymbolString for more details...
Definition: symbolStore.h:20
StringList myIndex
Definition: symbolStore.h:37
HashMap myStrings
Definition: symbolStore.h:34

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)