203extern void error(
const char *
file,
int line,
const char *
format, ...);
214extern void exit(
const char *
file,
int line,
const char *
format, ...);
245#define MESSAGE(format, args...) \
246 Aleph::message(__FILE__, __LINE__, format , ##args)
253#define WARNING(format, args...) \
254 Aleph::warning(__FILE__, __LINE__, format , ##args)
259#define MESSAGE(format, args...)
262#define WARNING(format, args...)
271#define AH_ERROR(format, args...) \
272 Aleph::error(__FILE__, __LINE__, format , ##args)
279#define EXIT(format, args...) \
280 Aleph::exit(__FILE__, __LINE__, format , ##args)
287#define POINTER_HAS_BEEN_FOUND(ptr) ((ptr) not_eq nullptr)
294#define POINTER_HAS_NOT_BEEN_FOUND(ptr) ((ptr) == nullptr)
301#define Exception_Prototypes(list...) throw(std::exception, ##list)
EmptyCtor
Tag type for empty/default construction.
SentinelCtor
Tag type for sentinel node construction.
NoExceptionCtor
Tag type for no-exception construction.
Main namespace for Aleph-w library functions.
const IPv4_Address Null_IPv4_Address
Null/invalid IPv4 address constant.
double max_time
Maximum allowed execution time (in seconds).
const int UnknownLine
Constant indicating unknown line number.
void message(const char *file, int line, const char *format,...)
Print an informational message with file and line info.
const int UnknownSize
Constant indicating unknown size.
void syslog(const char *format, va_list ap)
Write a message to syslog.
void exit(const char *file, int line, const char *format,...)
Print a message and exit the program.
void warning(const char *file, int line, const char *format,...)
Print a warning message with file and line info.
uint32_t IPv4_Address
Type alias for IPv4 addresses stored as 32-bit integers.
void error(const char *file, int line, const char *format,...)
Print an error message with file and line info.
const int UnknownLoad
Constant indicating unknown load factor.
bool daemonized
Flag indicating if the process is running as a daemon.
bool verbose
Flag enabling verbose output.
DynList< T > maps(const C &c, Op op)
Classic map operation.
Empty placeholder class with no data members.
bool operator!=(const Empty_Class &) const
Inequality comparison (always false).
bool operator==(const Empty_Class &) const
Equality comparison (always true).
friend std::ostream & operator<<(std::ostream &o, const Empty_Class &)
Stream output operator (outputs nothing).
Empty_Class & operator=(const Empty_Class &unused)
Copy assignment operator.
Empty_Class(const Empty_Class &unused)
Copy constructor.
friend std::istream & operator>>(std::istream &i, const Empty_Class &)
Stream input operator (reads nothing).
Empty_Class(EmptyCtor unused)
Empty constructor variant.
Empty_Class(SentinelCtor unused)
Sentinel constructor variant.
Empty_Class()
Default constructor.