[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin_base/hugin_utils/utils.cpp File Reference

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

Include dependency graph for utils.cpp:

Include dependency graph

Namespaces

namespace  hugin_utils

Functions

std::string CurrentTime ()
 current time as a string
std::string getExtension (const std::string &basename2)
 Get extension of a filename.
std::string stripExtension (const std::string &basename2)
 remove extension of a filename
std::string stripPath (const std::string &filename)
 remove the path of a filename (mainly useful for gui display of filenames)
std::string getPathPrefix (const std::string &filename)
 Get the path to a filename.
std::string doubleToString (double d, int digits)
 convert a double to a string, suitable for display within a GUI.
void ControlPointErrorColour (const double cperr, double &r, double &g, double &b)

Detailed Description

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

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


Function Documentation

IMPEX void hugin_utils::ControlPointErrorColour const double  cperr,
double r,
double g,
double b
 

IMPEX std::string hugin_utils::CurrentTime  ) 
 

current time as a string

IMPEX std::string hugin_utils::doubleToString double  d,
int  fractionaldigits = -1
 

convert a double to a string, suitable for display within a GUI.

d value to convert t a string fractionaldigits number of fractional digits. -1: not specified, use default.

IMPEX std::string hugin_utils::getExtension const std::string &  basename  ) 
 

Get extension of a filename.

IMPEX std::string hugin_utils::getPathPrefix const std::string &  filename  ) 
 

Get the path to a filename.

IMPEX std::string hugin_utils::stripExtension const std::string &  basename  ) 
 

remove extension of a filename

IMPEX std::string hugin_utils::stripPath const std::string &  filename  ) 
 

remove the path of a filename (mainly useful for gui display of filenames)


Generated on Mon Sep 20 01:01:31 2010 for Hugintrunk by doxygen 1.3.9.1