Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
elm::sys Namespace Reference

Classes

class  Directory
 
class  File
 
class  FileItem
 
class  IteratorProducer
 
class  Job
 
class  JobProducer
 
class  JobScheduler
 
class  Mutex
 
class  Path
 
class  Plugger
 
class  Plugin
 
class  Process
 
class  ProcessBuilder
 
class  Runnable
 
class  StopWatch
 
class  System
 
class  SystemException
 
class  Thread
 
class  ThreadException
 

Typedefs

typedef t::uint64 time_t
 

Functions

io::Outputoperator<< (io::Output &out, const Path &path)
 
static bool isLibrary (LockPtr< FileItem > file)
 
static sys::Path evaluate (sys::Path plugin_path, sys::Path path)
 

Variables

static cstring ELD_EXT = "eld"
 
static cstring SECTION_NAME = "elm-plugin"
 
static cstring PATH_ATT = "path"
 
static cstring RPATH_ATT = "rpath"
 
static cstring LIBS_ATT = "libs"
 
static cstring DEPS_ATT = "deps"
 
static cstring PLUG_EXT
 
static cstring fun_suffix = "_fun"
 

Typedef Documentation

◆ time_t

typedef t::uint64 time_t

Function Documentation

◆ evaluate()

static sys::Path elm::sys::evaluate ( sys::Path  plugin_path,
sys::Path  path 
)
inlinestatic

Evaluate the given path. For now, replaced only prefix "$ORIGIN" by current plugin path.

Parameters
plugin_pathPath to the current plugin.
pathPath to transform.
Returns
Transformed path.

References Path::dirPart(), and elm::io::p().

◆ isLibrary()

static bool elm::sys::isLibrary ( LockPtr< FileItem file)
inlinestatic

Test if the given file is a library.

Parameters
fileFile to test.
Returns
True if it is a library, false else.

References String::endsWith(), FileItem::path(), and Path::toString().

◆ operator<<()

io::Output& elm::sys::operator<< ( io::Output out,
const Path path 
)
inline

References Path::toString().

Variable Documentation

◆ DEPS_ATT

cstring DEPS_ATT = "deps"
static

◆ ELD_EXT

cstring ELD_EXT = "eld"
static

◆ fun_suffix

cstring fun_suffix = "_fun"
static

Referenced by Plugger::plugFile().

◆ LIBS_ATT

cstring LIBS_ATT = "libs"
static

◆ PATH_ATT

cstring PATH_ATT = "path"
static

◆ PLUG_EXT

cstring PLUG_EXT
static
Initial value:
=
"so"

Referenced by Plugger::plug(), and Plugger::plugFile().

◆ RPATH_ATT

cstring RPATH_ATT = "rpath"
static

◆ SECTION_NAME

cstring SECTION_NAME = "elm-plugin"
static