VR-Forces 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  enum class DtModelSetId;
17 }
18 
25 {
26 
27 public:
28 
31 
34 
36  virtual void getModelSetList( StringList& outList ) const;
37 
40 
42  virtual int stringToModelSet( const makVrv::DtUnicode& modelSetString ) const;
43 
45  int numModelSets() const;
46 
49  virtual void setModelSetName( int modelSet, const makVrv::DtUnicode& name );
50 
51 protected:
52 
53  typedef boost::bimap<makVrv::DtUnicode, int> ModelSetMap;
55 };
56 
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:25
virtual ~DtMfcModelSetStringProvider()
Virtual Destructor.
virtual int stringToModelSet(const makVrv::DtUnicode &modelSetString) const
Get the model set that&#39;s mapped to the specified string.
virtual makVrv::DtUnicode modelSetToString(makVrv::DtModelSetId modelSet) const
Get the string that&#39;s mapped to the specified model set.
For the purpose of the example, it doesn&#39;t really matter what this class does; but an instance of it ...
Definition: DtMfcModelSetStringProvider.h:24
DtMfcModelSetStringProvider(makVrv::DtDe &de)
Constructor.
std::vector< DtUnicode > StringList
Definition: DtModelSetStringProvider.h:30
virtual void getModelSetList(StringList &outList) const
Get the list of model set names.
boost::bimap< makVrv::DtUnicode, int > ModelSetMap
Definition: DtMfcModelSetStringProvider.h:53
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:72
DtModelSetId
Definition: DtModelSetEnums.h:19
ModelSetMap myModelSetMap
Definition: DtMfcModelSetStringProvider.h:54
int numModelSets() const
Get the current number of model set names on the model set list.

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)