VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtUserObjectBindings.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
12 
13 #pragma warning( push )
14 #pragma warning( disable : 4251 )
15 
16 #include <map>
17 #include <boost/any.hpp>
18 
19 namespace makVrv {
20 
24  {
25  public:
27  virtual ~DtUserObjectBindings();
28 
30  void setUserAny(const std::string& key, const boost::any& anything);
31 
33  bool hasKey(const std::string& key) const;
34 
36  const boost::any& getUserAny(const std::string& key);
37 
39  void eraseKey(const std::string& key);
40 
42  size_t numKeys(void) const;
43  private:
44 
45  typedef std::map<std::string, boost::any > UserObjectsMap;
47  };
48 
49 } //namespace makVrv
50 
51 #pragma warning (pop)
Dll export defines.
UserObjectsMap myUserObjectsMap
Definition: DtUserObjectBindings.h:46
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18
std::map< std::string, boost::any > UserObjectsMap
Definition: DtUserObjectBindings.h:45
Class to store a set of keys mapping to a set of any objects.
Definition: DtUserObjectBindings.h:23

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)