Types found in this namespace comprise module ALib System. This module collects types and functions that are interfacing with the operating system, hardware drivers etc.
Classes | |
class | CalendarDate |
class | CalendarDateTime |
class | CalendarDuration |
class | Console |
class | Directory |
struct | EnvironmentVariables |
class | ProcessInfo |
class | System |
Enumerations | |
enum | Exceptions { OK } |
enum | SystemErrors { UNKNOWN = -1, OK = 0, None = 0, eperm = EPERM, enoent = ENOENT, esrch = ESRCH, eintr = EINTR, eio = EIO, enxio = ENXIO, e2Big = E2BIG, enoexec = ENOEXEC, ebadf = EBADF, echild = ECHILD, eagain = EAGAIN, enomem = ENOMEM, eacces = EACCES, efault = EFAULT, ebusy = EBUSY, eexist = EEXIST, exdev = EXDEV, enodev = ENODEV, enotdir = ENOTDIR, eisdir = EISDIR, enfile = ENFILE, emfile = EMFILE, enotty = ENOTTY, efbig = EFBIG, enospc = ENOSPC, espipe = ESPIPE, erofs = EROFS, emlink = EMLINK, epipe = EPIPE, edom = EDOM, edeadlk = EDEADLK, enametoolong = ENAMETOOLONG, enolck = ENOLCK, enosys = ENOSYS, enotempty = ENOTEMPTY, einval = EINVAL, erange = ERANGE, eilseq = EILSEQ, struncate = STRUNCATE, eaddrinuse = EADDRINUSE, eaddrnotavail = EADDRNOTAVAIL, eafnosupport = EAFNOSUPPORT, ealready = EALREADY, ebadmsg = EBADMSG, ecanceled = ECANCELED, econnaborted = ECONNABORTED, econnrefused = ECONNREFUSED, econnreset = ECONNRESET, edestaddrreq = EDESTADDRREQ, ehostunreach = EHOSTUNREACH, eidrm = EIDRM, einprogress = EINPROGRESS, eisconn = EISCONN, eloop = ELOOP, emsgsize = EMSGSIZE, enetdown = ENETDOWN, enetreset = ENETRESET, enetunreach = ENETUNREACH, enobufs = ENOBUFS, enodata = ENODATA, enolink = ENOLINK, enomsg = ENOMSG, enoprotoopt = ENOPROTOOPT, enosr = ENOSR, enostr = ENOSTR, enotconn = ENOTCONN, enotrecoverable = ENOTRECOVERABLE, enotsock = ENOTSOCK, enotsup = ENOTSUP, eopnotsupp = EOPNOTSUPP, eother = 131, eoverflow = EOVERFLOW, eownerdead = EOWNERDEAD, eproto = EPROTO, eprotonosupport = EPROTONOSUPPORT, eprototype = EPROTOTYPE, etime = ETIME, etimedout = ETIMEDOUT, etxtbsy = ETXTBSY, ewouldblock = EWOULDBLOCK } |
Functions | |
Exception | CreateSystemException (const NCString &file, int line, const NCString &func, int errNo) |
ALIB_API void | FFormat_DateTime (const Box &self, const String &formatSpec, AString &target) |
|
strong |
Denotes exceptions thrown by classes of namespace aworx::lib::system.
Enumerator | |
---|---|
OK | Everything is fine. |
Definition at line 281 of file systemerrors.hpp.
|
strong |
Denotes result values returned by system functions (glibc, etc).
Definition at line 28 of file systemerrors.hpp.
ALIB_API Exception CreateSystemException | ( | const NCString & | file, |
int | line, | ||
const NCString & | func, | ||
int | errNo | ||
) |
Namespace function that creates an according Exception to a corresponding system error number.
The small challenge here is that arbitrary error numbers (of unknown) type might occur, that do not have a corresponding enum record. SystemErrors::UNKNOWN is thrown and only the number is displayed in the description text.
file | File name of the place of exception creation. |
line | Line number of the place of exception creation. |
func | Function/method name of the place of exception creation. |
errNo | The system's error number. |
Definition at line 447 of file system.cpp.
ALIB_API void aworx::lib::system::FFormat_DateTime | ( | const Box & | self, |
const String & | formatSpec, | ||
AString & | target | ||
) |
Implementation of FFormat for boxable type DateTime.
Writes the content of box (which is of type DateTime) to the given AString object target using a local instance of class CalendarDateTime and its method CalendarDateTime::Format.
If parameter formatSpec is empty, a default format string defined by string resource of key "DFMT" is used.
self | The box that the function was invoked on. |
formatSpec | The specification of the format. |
target | The AString object receiving the formatted string. |