Eigene Dateien/FlowVis/src/VCommon.h File Reference

#include <windows.h>
#include <commdlg.h>
#include <stdlib.h>
#include <io.h>
#include <iostream>
#include <sstream>
#include <string>

Go to the source code of this file.

Classes

class  eat

Defines

#define PI   3.14159265f
#define BOUNDARY   0.9125f

Functions

template<class Type>
const Type fromString (const std::string &strString)
template<class Type>
const bool fromString (Type &tValue, const std::string &strString)
template<class Type>
const std::string toString (const Type &tValue)
const std::string trimLeft (const std::string &str, const std::string &strWhitespace="\n\r\t ")
const std::string trimRight (const std::string &str, const std::string &strWhitespace="\n\r\t ")
const std::string trim (const std::string &str, const std::string &strWhitespace="\n\r\t ")
std::istream & operator>> (std::istream &is, eat &e)


Define Documentation

#define BOUNDARY   0.9125f

Definition at line 13 of file VCommon.h.

#define PI   3.14159265f

Definition at line 12 of file VCommon.h.

Referenced by VIcon::computeIcon(), and VCamera::updateProjMatrix().


Function Documentation

template<class Type>
const bool fromString ( Type &  tValue,
const std::string &  strString 
) [inline]

converts from string to a given type

Parameters:
tValue Value to convert to
strString String containing the Value
Returns:
bool containing true if success

Definition at line 35 of file VCommon.h.

template<class Type>
const Type fromString ( const std::string &  strString  )  [inline]

converts a string to a given Type

Parameters:
strString string containing the value
Returns:
Type

Definition at line 21 of file VCommon.h.

std::istream& operator>> ( std::istream &  is,
eat e 
) [inline]

Definition at line 149 of file VCommon.h.

References eat::process().

template<class Type>
const std::string toString ( const Type &  tValue  )  [inline]

converts from Type to String

Parameters:
tValue Type
Returns:
String containing the tValue

Definition at line 63 of file VCommon.h.

const std::string trim ( const std::string &  str,
const std::string &  strWhitespace = "\n\r\t " 
) [inline]

Definition at line 91 of file VCommon.h.

References trimLeft(), and trimRight().

const std::string trimLeft ( const std::string &  str,
const std::string &  strWhitespace = "\n\r\t " 
) [inline]

Definition at line 71 of file VCommon.h.

Referenced by trim().

const std::string trimRight ( const std::string &  str,
const std::string &  strWhitespace = "\n\r\t " 
) [inline]

Definition at line 81 of file VCommon.h.

Referenced by trim().


Generated on Mon Jan 21 01:15:16 2008 for FlowVis by  doxygen 1.5.4