Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StitcherOptions.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
9 /* This is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This software is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public
20  * License along with this software. If not, see
21  * <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef _NONA_STITCHEROPTIONS_H
26 #define _NONA_STITCHEROPTIONS_H
27 
28 #include <map>
29 #include <string>
30 #include <hugin_shared.h>
31 
32 namespace HuginBase
33 {
34 namespace Nona
35 {
36 
37 typedef std::map<std::string, std::string> AdvancedOptions;
38 
40 IMPEX bool GetAdvancedOption(const AdvancedOptions& opts, const std::string& name, const bool defaultValue);
41 IMPEX std::string GetAdvancedOption(const AdvancedOptions& opts, const std::string& name, const std::string& defaultValue = std::string(""));
42 IMPEX float GetAdvancedOption(const AdvancedOptions& opts, const std::string& name, const float defaultValue);
43 
45 IMPEX void SetAdvancedOption(AdvancedOptions& opts, const std::string& name, const bool value);
46 IMPEX void SetAdvancedOption(AdvancedOptions& opts, const std::string& name, const std::string& value);
47 IMPEX void SetAdvancedOption(AdvancedOptions& opts, const std::string& name, const float value);
48 
49 } // namespace Nona
50 } // namespace HuginBase
51 
52 #endif // _NONA_STITCHEROPTIONS_H
bool GetAdvancedOption(const AdvancedOptions &opts, const std::string &name, const bool defaultValue)
check if given option is saved and return its boolean value, otherwise return defaultValue ...
#define IMPEX
Definition: hugin_shared.h:39
std::map< std::string, std::string > AdvancedOptions
void SetAdvancedOption(AdvancedOptions &opts, const std::string &name, const bool value)
store the option with name in AdvancedOptions