platform.h File Reference

platform/compiler specific stuff. More...

#include <hugin_shared.h>
#include <math.h>
#include <string>

Include dependency graph for platform.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


namespace  hugin_utils


int hugin_utils::getCPUCount ()
 return the CPU count. On error returns a cpu count of 0 or -1
template<class str>
str hugin_utils::quoteStringInternal (const str &arg, const str &quotechar, const str &replacements)
 utility function; escapes characters in replacements with quotechar.
template<class str>
str hugin_utils::quoteString (const str &arg)
 Try to escape special chars on windows and linux.
template<class str>
str hugin_utils::quoteStringShell (const str &arg)
 Try to escape special chars in a string used by a unix type shell.
template<class str>
str hugin_utils::escapeStringMake (const str &arg)
 Escape dangerous chars in makefile strings/filenames (space),#,=.
template<class str>
str hugin_utils::quoteFilename (const str &arg)
 Quote a filename, so that it is surrounded by "".

Detailed Description

platform/compiler specific stuff.

Pablo d'Angelo <>

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this software. If not, see <>.

Definition in file platform.h.

Generated on 23 Apr 2018 for Hugintrunk by  doxygen 1.4.7