utils.cpp File Reference

#include "utils.h"
#include <sys/time.h>
#include <time.h>
#include <fstream>
#include <stdio.h>
#include <cstdio>

Include dependency graph for utils.cpp:

Go to the source code of this file.


namespace  hugin_utils


std::string hugin_utils::GetCurrentTimeString ()
 current time as a string
std::string hugin_utils::getExtension (const std::string &basename)
 Get extension of a filename.
std::string hugin_utils::stripExtension (const std::string &basename)
 remove extension of a filename
std::string hugin_utils::stripPath (const std::string &filename)
 remove the path of a filename (mainly useful for gui display of filenames)
std::string hugin_utils::getPathPrefix (const std::string &filename)
 Get the path to a filename.
std::string hugin_utils::doubleToString (double d, int fractionaldigits=-1)
 convert a double to a string, suitable for display within a GUI.
void hugin_utils::ControlPointErrorColour (const double cperr, double &r, double &g, double &b)
bool hugin_utils::FileExists (const std::string filename)
 checks if file exists
std::string hugin_utils::GetAbsoluteFilename (const std::string filename)
 returns the full absolute filename

Detailed Description

Pablo d'Angelo <pablo.dangelo@web.de>

This program 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 General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file utils.cpp.

Generated on 5 Jul 2015 for Hugintrunk by  doxygen 1.4.7