COPASI API  4.16.103
CLImageTexturizer.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLImageTexturizer.cpp,v $
3 // $Revision: 1.3 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/04/01 15:06:41 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 
15 #include "copasi.h"
16 
17 #include "CLImageTexturizer.h"
18 
19 #include "utilities/CDirEntry.h"
20 #include "utilities/utility.h"
21 
22 std::string CLImageTexturizer::to_absolute_path(const std::string& filename, const std::string& basedir)
23 {
24  // first convert to UTF8 because CDirEntry expects UTF8
25  std::string Path = filename;
26  CDirEntry::makePathAbsolute(Path, basedir);
27 
28  return Path;
29 }
static std::string to_absolute_path(const std::string &filename, const std::string &basedir)
static bool makePathAbsolute(std::string &relativePath, const std::string &absoluteTo)
Definition: CDirEntry.cpp:481