StitcherOptions.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00009 /*  This is free software; you can redistribute it and/or
00010  *  modify it under the terms of the GNU General Public
00011  *  License as published by the Free Software Foundation; either
00012  *  version 2 of the License, or (at your option) any later version.
00013  *
00014  *  This software is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  *  Lesser General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public
00020  *  License along with this software. If not, see
00021  *  <http://www.gnu.org/licenses/>.
00022  *
00023  */
00024 
00025 #ifndef _NONA_STITCHEROPTIONS_H
00026 #define _NONA_STITCHEROPTIONS_H
00027 
00028 #include <map>
00029 #include <string>
00030 #include <hugin_shared.h>
00031 
00032 namespace HuginBase
00033 {
00034 namespace Nona
00035 {
00036 
00037 typedef std::map<std::string, std::string> AdvancedOptions;
00038 
00040 IMPEX bool GetAdvancedOption(const AdvancedOptions& opts, const std::string& name, const bool defaultValue);
00041 IMPEX std::string GetAdvancedOption(const AdvancedOptions& opts, const std::string& name, const std::string& defaultValue = std::string(""));
00042 IMPEX float GetAdvancedOption(const AdvancedOptions& opts, const std::string& name, const float defaultValue);
00043 
00045 IMPEX void SetAdvancedOption(AdvancedOptions& opts, const std::string& name, const bool value);
00046 IMPEX void SetAdvancedOption(AdvancedOptions& opts, const std::string& name, const std::string& value);
00047 IMPEX void SetAdvancedOption(AdvancedOptions& opts, const std::string& name, const float value);
00048 
00049 } // namespace Nona
00050 } // namespace HuginBase
00051 
00052 #endif // _NONA_STITCHEROPTIONS_H

Generated on 25 Apr 2018 for Hugintrunk by  doxygen 1.4.7