cgma
CubitDynamicLoader.cpp File Reference
#include "CubitDynamicLoader.hpp"
#include <vector>
#include <sys/stat.h>
#include "CubitMessage.hpp"
#include "CubitString.hpp"
#include <dlfcn.h>

Go to the source code of this file.

Functions

static bool absolute_path (const char *path)

Variables

static std::vector< CubitStringgSearchPaths

Function Documentation

static bool absolute_path ( const char *  path) [static]

Definition at line 20 of file CubitDynamicLoader.cpp.

{
#ifdef _WIN32
  // either a '\' or a 'x:' drive letter means absolute path
  return path[0] == '\\' || (path[0] != '\0') ? (path[1] == ':') : 0;
#else
  // a '/' is always an absolute path
  return path[0] == '/';
#endif
}

Variable Documentation

std::vector<CubitString> gSearchPaths [static]

Definition at line 13 of file CubitDynamicLoader.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines