|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_SYS_SYSTEM_H
22 #define ELM_SYS_SYSTEM_H
24 #include <elm/data/Vector.h>
25 #include <elm/sys/Path.h>
26 #include <elm/sys/SystemIO.h>
27 #include <elm/sys/SystemException.h>
28 #include <elm/util/Pair.h>
30 namespace elm {
namespace io {
33 class RandomAccessStream;
36 namespace elm {
namespace sys {
47 static unsigned int random(
unsigned int top);
67 static void exit(
int code = 0);
74 #endif // ELM_SYS_SYSTEM_H
static const int WRITE
Definition: System.h:43
static sys::Path getTempFile(void)
static void remove(const Path &path)
static int coreCount(void)
static unsigned int random(unsigned int top)
Definition: system_System.cpp:259
static io::RandomAccessStream * openRandomFile(const Path &path, access_t access=READ)
Definition: system_System.cpp:465
static void removeDir(const sys::Path &path)
static io::OutStream * appendFile(const Path &path)
Definition: system_System.cpp:346
static io::InStream * readFile(const Path &path)
Definition: system_System.cpp:311
static void exit(int code=0)
static Path getUnitPath(void *address)
Definition: system_System.cpp:517
Definition: RandomAccessStream.h:34
static cstring library_suffix
Definition: System.h:56
static io::RandomAccessStream * createRandomFile(const Path &path, access_t access=READ)
Definition: system_System.cpp:489
static cstring exec_suffix
Definition: System.h:56
static cstring getEnv(cstring key)
static string getPluginFileName(const string &name)
static void makeDir(const sys::Path &path)
static io::OutStream * createFile(const Path &path)
Definition: system_System.cpp:278
static string getLibraryFileName(const string &name)
Definition: OutStream.h:30
static void removeFile(const Path &path)
static Path::DirReader contentOf(const sys::Path &dir)
static void makeDirs(const sys::Path &path)
int access_t
Definition: System.h:41
static cstring library_prefix
Definition: System.h:56
static Pair< SystemInStream *, SystemOutStream * > pipe(void)
Definition: system_System.cpp:206
static bool hasEnv(cstring key)
static const int READ
Definition: System.h:42
static sys::Path getTempDir(void)
static const int READ_WRITE
Definition: System.h:44
Definition: InStream.h:29