VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtStringKeyConverter.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtStringKeyConverter.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCore/vrvCore.h>
16 
17 #include <map>
18 #include <string>
19 
20 namespace makVrv
21 {
22  class DtDe;
23 
34  {
35  public:
36 
38  typedef std::map< std::string, int > StringKeyToIntKeyMap;
40  typedef std::map< int, std::string > IntKeyToStringKeyMap;
41 
44 
47 
48  private:
51 
53  DtStringKeyConverter& operator=(const DtStringKeyConverter&);
54 
55  public:
56 
59  int registerStringKey( const std::string& stringKey );
60 
63  void registerStringKey( const std::string& stringKey, int intKey );
64 
67  int lookupIntKey( const std::string& stringKey ) const;
68 
71  const std::string* findStringKey( int intKey ) const;
72 
75  const StringKeyToIntKeyMap& stringKeys() const;
76 
79  const IntKeyToStringKeyMap& intKeys() const;
80 
82  void removeKey( int intKey );
83 
85  void removeKey( const std::string& stringKey );
86 
87  protected:
88 
92  };
93 
94 }
95 
96 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)