VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMfcModelSetStringProvider.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
11 #include <boost/bimap.hpp>
12 
13 namespace makVrv
14 {
15  class DtDe;
16 }
17 
24 {
25 
26 public:
27 
30 
33 
35  virtual void getModelSetList( StringList& outList ) const;
36 
38  virtual makVrv::DtUnicode modelSetToString( int modelSet ) const;
39 
41  virtual int stringToModelSet( const makVrv::DtUnicode& modelSetString ) const;
42 
44  int numModelSets() const;
45 
48  virtual void setModelSetName( int modelSet, const makVrv::DtUnicode& name );
49 
50 protected:
51 
52  typedef boost::bimap<makVrv::DtUnicode, int> ModelSetMap;
54 };
55 
virtual makVrv::DtUnicode modelSetToString(int modelSet) const
Get the string that&#39;s mapped to the specified model set.
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
virtual void setModelSetName(int modelSet, const makVrv::DtUnicode &name)
Change the string associated with a model set (if it exists) or add a new string to model set mapping...
DtModelSetStringProvider is an interface for a class to provide strings for model sets...
Definition: DtModelSetStringProvider.h:24
virtual ~DtMfcModelSetStringProvider()
Virtual Destructor.
virtual int stringToModelSet(const makVrv::DtUnicode &modelSetString) const
Get the model set that&#39;s mapped to the specified string.
For the purpose of the example, it doesn&#39;t really matter what this class does; but an instance of it ...
Definition: DtMfcModelSetStringProvider.h:23
DtMfcModelSetStringProvider(makVrv::DtDe &de)
Constructor.
std::vector< DtUnicode > StringList
Definition: DtModelSetStringProvider.h:29
virtual void getModelSetList(StringList &outList) const
Get the list of model set names.
boost::bimap< makVrv::DtUnicode, int > ModelSetMap
Definition: DtMfcModelSetStringProvider.h:52
Contains makVrv::DtModelSetStringProvider class.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
ModelSetMap myModelSetMap
Definition: DtMfcModelSetStringProvider.h:53
int numModelSets() const
Get the current number of model set names on the model set list.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)