VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvOsg/vrvOsg.h>
16 #include <map>
17 #include <string>
18 
19 namespace makVrv
20 {
26  {
27  public:
28 
31  static void addOption( std::string& output, const std::string& opt );
32 
34  static bool findOption( const std::string& output,
35  const std::string& opt );
36 
39  static bool findAndRemoveOption( std::string& optionsToModify,
40  const std::string& opt );
41 
43  static void removeOption( std::string& optionsToModify,
44  const std::string& optionStr );
45 
48  static void addOptionValuePair( std::string& output,
49  const std::string& opt, const std::string& value,
50  bool allowMultiple = false);
51 
55  static void addOptionValuePair( std::string& output,
56  const std::string& opt, double value, bool allowMultiple = false);
57 
61  static void addOptionValuePair( std::string& output,
62  const std::string& opt, int value, bool allowMultiple = false);
63 
65  static bool findOptionValuePair( const std::string& output,
66  const std::string& option, std::string& value );
67 
71  static bool removeOptionValuePair( std::string& optionsToModify,
72  const std::string& opt, bool removeAllInstances = true );
73 
75  static void findAllOptions( const std::string& output,
76  std::multimap<std::string, std::string>& optionStore);
77 
78 
79  };
80 }
81 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)