![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: $ $Revision: $ $State: $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvOsg/vrvOsg.h> 00016 #include <map> 00017 #include <string> 00018 00019 namespace makVrv 00020 { 00025 class DT_DLL_VRVOSG DtOsgOptionsTranslator 00026 { 00027 public: 00028 00031 static void addOption( std::string& output, const std::string& opt ); 00032 00034 static bool findOption( const std::string& output, 00035 const std::string& opt ); 00036 00039 static bool findAndRemoveOption( std::string& optionsToModify, 00040 const std::string& opt ); 00041 00043 static void removeOption( std::string& optionsToModify, 00044 const std::string& optionStr ); 00045 00048 static void addOptionValuePair( std::string& output, 00049 const std::string& opt, const std::string& value, 00050 bool allowMultiple = false); 00051 00055 static void addOptionValuePair( std::string& output, 00056 const std::string& opt, double value, bool allowMultiple = false); 00057 00061 static void addOptionValuePair( std::string& output, 00062 const std::string& opt, int value, bool allowMultiple = false); 00063 00065 static bool findOptionValuePair( const std::string& output, 00066 const std::string& option, std::string& value ); 00067 00071 static bool removeOptionValuePair( std::string& optionsToModify, 00072 const std::string& opt, bool removeAllInstances = true ); 00073 00075 static void findAllOptions( const std::string& output, 00076 std::multimap<std::string, std::string>& optionStore); 00077 00078 00079 }; 00080 } 00081