VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgOptionsTranslator.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <map>
14 #include <string>
15 
16 namespace makVrv
17 {
23  {
24  public:
25 
28  static void addOption( std::string& output, const std::string& opt );
29 
31  static bool findOption( const std::string& output,
32  const std::string& opt );
33 
36  static bool findAndRemoveOption( std::string& optionsToModify,
37  const std::string& opt );
38 
40  static void removeOption( std::string& optionsToModify,
41  const std::string& optionStr );
42 
45  static void addOptionValuePair( std::string& output,
46  const std::string& opt, const std::string& value,
47  bool allowMultiple = false);
48 
52  static void addOptionValuePair( std::string& output,
53  const std::string& opt, double value, bool allowMultiple = false);
54 
58  static void addOptionValuePair( std::string& output,
59  const std::string& opt, int value, bool allowMultiple = false);
60 
62  static bool findOptionValuePair( const std::string& output,
63  const std::string& option, std::string& value );
64 
68  static bool removeOptionValuePair( std::string& optionsToModify,
69  const std::string& opt, bool removeAllInstances = true );
70 
72  static void findAllOptions( const std::string& output,
73  std::multimap<std::string, std::string>& optionStore);
74 
75 
76  };
77 }
78 
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
The osg options translator provides utility functions for encoding values into and decoding values ou...
Definition: DtOsgOptionsTranslator.h:22
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)