src/inVRs/SystemCore/UtilityFunctions.h File Reference

#include <sstream>
#include "Configuration.h"
#include "ModuleIds.h"
#include "TransformationManager/TransformationManager.h"

Include dependency graph for UtilityFunctions.h:

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


Functions

std::string getFullPath (const std::string &path, std::string configFileEntry="")
std::string getTransformationPipeIdAsString (OSG::UInt64 id)
bool copyFile (const std::string &srcFile, const std::string dstFile)

Function Documentation

bool copyFile ( const std::string &  srcFile,
const std::string  dstFile 
) [inline]

std::string getFullPath ( const std::string &  path,
std::string  configFileEntry = "" 
) [inline]

Returns the full path to the config file. The following concepts are used for creation of the final path:

path configFileEntry RESULT
"abc.xml" "..." configFilePath + path
"path/to/abc.xml" "..." configFilePath + path
"abc.xml" "" || NULL configRootPath + path
"path/to/abc.xml" "" || NULL configRootPath + path
"/path/to/abc.xml" "" || NULL path (global path)
"./abc.xml" "" || NULL PWD + path
"./path/to/abc.xml" "" || NULL PWD + path
"../path/to/abc.xml" "" || NULL PWD + path

std::string getTransformationPipeIdAsString ( OSG::UInt64  id  )  [inline]


Generated on Wed Oct 20 16:11:48 2010 for inVRs by doxygen 1.5.8