ui-utilcpp  1.10.0
Namespaces
auto_ptr_compat.hpp File Reference

auto_ptr compat More...

#include <memory>
Include dependency graph for auto_ptr_compat.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 UI
 Namespace for any Schlund+Partner C++ code.
 
 UI::Util
 Namespace for ui-utilcpp.
 

Detailed Description

auto_ptr compat

UI::Util::ForkThread::start
void start()
Spawn thread.
Definition: Thread.cpp:116
UI::Util::ato
out_type ato(std::string const &t, StreamModifier const m=0)
String-to-anything converter with default values on error.
Definition: Text.hpp:104
UI::Util::CmdLine::Cmd::run
int run()
Public run function. Use this to run commands.
Definition: CmdLine.cpp:170
UI::Util::CLOptionArg
Class representing a command line option with mandatory argument.
Definition: GetOpt.hpp:136
UI::Util::QuotaInfo::getBlocks
unsigned long getBlocks() const
Current block usage.
Definition: QuotaInfo.cpp:477
UI::Util::Cap
C++ encapsulation for libcap's 'cap_t'.
Definition: Cap.hpp:20
UI::Util::istream2Vector
std::vector< Byte > istream2Vector(std::istream &f, int const blockSize=1024)
Read any stream into any byte vector.
Definition: Text.hpp:286
UI::Util::IdnEMailConverter
Converter from an-char-encoded string with randomly placed email-adresse -> the same string w/ domain...
Definition: Recoder.hpp:254
UI::Util::File::getName
std::string const & getName() const
Get file name. This will always deliver en empty string if constructed from fd.
Definition: File.cpp:187
UI::Util::INetSocket::bind
virtual INetSocket & bind()
Bind this socket.
Definition: Socket.cpp:291
UI::Util::ProcessThread::pid_
pid_t pid_
Definition: Thread.hpp:81
UI::Util::CFileStream::CFileStream
CFileStream(std::string const &fileName, std::string const &mode)
Constructor.
Definition: File.cpp:78
UI::Util::CLOption::defaultArg_
std::string const defaultArg_
Definition: GetOpt.hpp:130
UI::Util::URLConverter::decode
static std::string decode(std::string const &url)
Decode an URL encoded string.
Definition: Recoder.cpp:334
UI::Util::CmdLine::Cmd::addOptArg
void addOptArg(std::string const &name, std::string const &help="No help for this option")
Add optional argument. Use this in constructors of custom Cmd classes.
Definition: CmdLine.cpp:58
UI::Util::SysLogMonoSingleton
Singleton class holding one SysLogMono object.
Definition: SysLogMono.hpp:55
UI::Util::RealTimeStamp::operator+=
RealTimeStamp & operator+=(RealTimeStamp const &rt)
Standard += operator.
Definition: Time.cpp:128
UI::Util::CmdLine::Cmd
Represents a command.
Definition: CmdLine.hpp:119
UI::Util::GetOpt
Abstraction class for GNU getopt_long(3).
Definition: GetOpt.hpp:171
UI::Util::Cap::Cap
Cap(InitType const &initType=Proc_)
Construct from process state, or cleared with proc=false.
Definition: Cap.cpp:12
UI::Util::FileDescriptor::FileDescriptor
FileDescriptor(int fd=-1, bool closeFd=false)
Constructor from file descriptor.
Definition: File.cpp:142
UI::Util::CLOptionArg::CLOptionArg
CLOptionArg(std::string const &nameLong, char nameShort, std::string const &doc="No documentation for this option.", std::string const &defaultArg="")
Standard constructor.
Definition: GetOpt.cpp:92
UI::Util::QuotaInfo::getFreeInodesSL
bool getFreeInodesSL(unsigned long &free) const
Get free inodes from soft limit. False, if there is no soft limit.
Definition: QuotaInfo.cpp:500
UI::Util::CLOptionArg::printUsage
virtual void printUsage() const
Print usage information for this option.
Definition: GetOpt.cpp:110
UI::Util::Http::Header
Array of header fields.
Definition: Header.hpp:160
UI::Util::Sys::Exception
Use this exception class if you want to catch failures on system/library calls.
Definition: Sys.hpp:136
UI::Util::QuotaInfo::file2fs
static FS file2fs(std::string const &fName, std::string const &tab="/proc/mounts")
Get FS information from any file in that fs.
Definition: QuotaInfo.cpp:48
UI::Util::Socket::shutdown
int shutdown(int how, bool doThrow=true)
Shutdown socket.
Definition: Socket.cpp:186
UI::Util::reverse_lfind
std::list< K >::iterator reverse_lfind(std::list< K > &l, K const &key)
Reverse "find" for lists.
Definition: Misc.hpp:151
UI::Util::Http::Connection::Connection
Connection(std::iostream &stream)
Definition: Connection.cpp:17
UI::Util::Socket::getPeerId
std::string getPeerId() const
Get peer id.
Definition: Socket.cpp:98
UI::Util::getTimeValUSec
long int getTimeValUSec()
Get "usec"-part from gettimeofday(2).
Definition: Time.cpp:24
UI::Util::EUIDSwap
Helper class to get a scope executed with some other effective uid.
Definition: Misc.hpp:256
UI::Util::Rfc2047Converter::make
Conversion const * make(char const *const buf, size_t const bufSize) const
Convert from byte buffer.
Definition: Recoder.cpp:398
UI::Util::Default< double >
double Default< double >()
Default-Specialising.
Definition: Text.hpp:70
UI::Util::QuotaInfo::getBlockHL
unsigned long getBlockHL() const
Hard limit of disk blocks.
Definition: QuotaInfo.cpp:475
UI::Util::Http::verifyVersion
bool verifyVersion(std::string const &version, bool const &doThrow)
Helper to verify a version string.
Definition: Header.cpp:21
UI::Util::FileDescriptor::Exception
CodeException< ErrorCode > Exception
Exceptions for this class.
Definition: File.hpp:124
UI::Util::QuotaInfo
Quota information abstraction.
Definition: QuotaInfo.hpp:35
UI::Util::PosixRegex::runMatch
Match runMatch(std::string const &text, int eflags=0)
Check if text matches, and return the (first) match.
Definition: PosixRegex.cpp:37
GetOpt.hpp
Abstraction of GNU C "getopt_long(3)".
UI::Exception::Errno_
static std::string const Errno_
If this string is used in a "what" description message, it will be replaced by an errno error string.
Definition: Exception.hpp:109
UI::Util::RealTimeStamp::operator==
bool operator==(RealTimeStamp const &rt) const
Standard == operator.
Definition: Time.cpp:113
UI::Util::CodeException
Adding code facility to Exception.
Definition: Exception.hpp:165
UI::Util::CmdLine::Cmd::cl_
CmdLine * cl_
Should be there to access CmdLine.
Definition: CmdLine.hpp:189
UI::Util::SysLogMonoSingleton::log
static SysLogMono & log(int level)
Log function; you may stream directly into the result.
Definition: SysLogMono.cpp:68
UI::Util::Recoder
Meta converter class: converter switcher and generic interface.
Definition: Recoder.hpp:264
UI::Util::QuotaInfo::getFree
bool getFree(unsigned long const limit, unsigned long const blocks, unsigned long &free) const
Helper for getFree* methods.
Definition: QuotaInfo.cpp:506
UI::Util::strdup
char * strdup(char const *s)
BSD style "strdup" implementation (is not C standard). See strdup(3).
Definition: Text.cpp:113
UI::Util::Socket::getId
std::string getId(bool const &peer=false) const
Get human-readable id string.
Definition: Socket.cpp:79
UI::Util::FDTypeStream
IO stream for file descriptors.
Definition: Socket.hpp:228
UI::Util::AlphaNumericKey
Class using boost::mt19937 as random engine.
Definition: Text.hpp:157
UI::Util::GetOpt::~GetOpt
~GetOpt()
Standard destructor.
Definition: GetOpt.cpp:169
UI::Util::CmdLine::CmdLine::getVar
std::string getVar(std::string const &key) const
Get variable value.
Definition: CmdLine.cpp:485
UI::Util::CLOption
Most general class for a command line option. Use this class for a option without argument.
Definition: GetOpt.hpp:52
UI::Util::BSDFileMutex
Mutex For BSD Advisory File Locking.
Definition: File.hpp:268
UI::Util::auto_base
Base adapter class to hold a pointer that can't be freed using standard "delete".
Definition: Misc.hpp:72
UI::Util::Cap::get
std::string const get() const
Get textual representation (see man cap_to_text(3)).
Definition: Cap.cpp:56
UI::Util::fd2DevNull
void fd2DevNull(int const &fd, mode_t const &mode)
Close fd and reopen on "/dev/null" using mode.
Definition: Thread.cpp:17
auto_ptr_compat.hpp
auto_ptr compat
UI::Util::PosixRegex::Match::end
unsigned end
Definition: PosixRegex.hpp:51
UI::Util::auto_base::operator->
P * operator->() const
Smart dereferencing.
Definition: Misc.hpp:93
UI::Util::CmdLine::HelpCmd
Internal command: Get help.
Definition: CmdLine.cpp:249
UI::Util::GetOpt::set
GetOpt & set(std::string const &nameLong, char nameShort, Type type, std::string const &doc="No documentation for this option.", std::string const &defaultArg="")
Introduce a new option.
Definition: GetOpt.cpp:174
UI::Util::Converter::Converter
Converter(std::string const &inEnc, std::string const &outEnc, bool const &sloppy=false)
Converter base constructor.
Definition: Recoder.cpp:71
UI::Util::auto_cvec::operator[]
P & operator[](int i)
Access an C vector element.
Definition: Misc.hpp:119
UI::Util::Socket::Socket
Socket(int fd=-1, bool closeFd=false)
Construct socket.
Definition: Socket.cpp:16
UI::Util::Http::HeaderField::HeaderField
HeaderField(std::string const &name, std::string const &value)
Construct from components.
Definition: Header.cpp:172
UI_THROW_ERRNO
#define UI_THROW_ERRNO(call)
Throw non-code exception w/ errno handling.
Definition: Exception.hpp:22
UI::Util::QuotaInfo::QuotaInfo
QuotaInfo(FS const &fs, int const id=Sys::geteuid(), Type const type=Usr_, std::string const &strPath="")
Definition: QuotaInfo.cpp:268
UI::Util::Converter
Factory for Conversions.
Definition: Recoder.hpp:83
UI::Util::CLOption::getNameLong
std::string getNameLong() const
Get the long name.
Definition: GetOpt.cpp:33
UI::Util::fileCopy
void fileCopy(std::string const &src, std::string const &dest)
File copy from file names.
Definition: File.cpp:93
UI::Util::RealPath::get
std::string get(std::string const &path)
Get canonical path, mutex-protected.
Definition: Misc.hpp:242
UI::Util::CmdLine::SleepCmd
Internal command: Sleep for n seconds.
Definition: CmdLine.cpp:361
UI::Util::Http::StatusLine::get
std::string get() const
Get composition.
Definition: Header.cpp:168
Misc.hpp
UI::Util::daemonize
void daemonize(bool closeStdFds, bool changeToRootdir, bool resetUMask)
Use fork(2) to daemonize current program in a new session id.
Definition: Thread.cpp:28
UI::Util::LibRecodeConverter::LibRecodeConverter
LibRecodeConverter(std::string const &inEnc, std::string const &outEnc, bool const &sloppy=false)
Constructor; this supports sloppy encoding if desired.
Definition: Recoder.cpp:97
UI::Util::PosixFileMutex
Mutex For Posix Advisory File Locking.
Definition: File.hpp:233
UI::Util::FileDescriptor::write
virtual std::streamsize write(void const *const buf, std::streamsize count)
C++ like virtual erite method.
Definition: File.cpp:158
UI::Util::QuotaInfo::FS
Helper class to hold the device string and (optional) the fs type (to be able to do better selection ...
Definition: QuotaInfo.hpp:41
UI::Util::XConversion::basis2Dec
static int basis2Dec(std::string number, int basis)
Definition: Text.cpp:276
UI::Util::str2Ascii
std::string & str2Ascii(std::string &s)
Replace all non-ASCII characters to '?' in string.
Definition: Text.cpp:77
UI::Util::AlphaNumericKey::AlphaNumericKey
AlphaNumericKey()
Construct; seed will be automatically set (once) via timestamp (for linux/unix: microseconds).
Definition: Text.cpp:90
UI::Util::IConvConverter
Character set converter, using libc's "iconv" directly.
Definition: Recoder.hpp:143
UI::Util::Rfc2047Converter
Converter charEncoding -> rfc2047 (MIME).
Definition: Recoder.hpp:234
UI::Util::MutexLock::~MutexLock
~MutexLock()
Destructor; unlocks the mutex.
Definition: Misc.hpp:214
UI::Util::RealTimeStamp::getUSec
long int getUSec() const
Get micro seconds since Epoch+sec.
Definition: Time.cpp:103
UI::Util::auto_cvec::~auto_cvec
~auto_cvec()
Free memory held by C vector via delete[].
Definition: Misc.hpp:113
UI::Util::CLOption::setGiven
virtual void setGiven(std::string const &arg="")
Mark this option as "given", and optionally set the argument.
Definition: GetOpt.cpp:82
UI::Util::Default< long int >
long int Default< long int >()
Default-Specialising.
Definition: Text.hpp:72
UI::Util::CmdLine::CmdLine::readLine
std::string readLine(std::string const &promptVar="__PROMPT")
Only source for input.
Definition: CmdLine.cpp:455
UI_THROW
#define UI_THROW(desc)
Throw non-code exception.
Definition: Exception.hpp:20
UI::Util::CmdLine::CmdLine::findCmd
Cmd * findCmd(std::string const &name) const
Find a command from name.
Definition: CmdLine.cpp:440
UI::Util::fileExists
bool fileExists(std::string const &fName)
Check if a file exists using stat(2).
Definition: File.cpp:106
UI::Util::RealTimeStamp::getSec
long int getSec() const
Get seconds since Epoch.
Definition: Time.cpp:98
UI::Util::Sys
Namespace for system/library calls.
Definition: Shortcuts.hpp:8
UI_THROW_CODE
#define UI_THROW_CODE(code, desc)
Throw code exception.
Definition: Exception.hpp:24
UI::Util::PosixRegex
Wrapper class for POSIX.2 regex functions.
Definition: PosixRegex.hpp:33
UI::Util::etos
std::pair< std::string, bool > etos(in_type const &t, StreamModifier const m=0, int w=0, char f=' ')
Anything-to-string converter with error handling.
Definition: Text.hpp:119
UI::Util::Http::StatusLine::StatusLine
StatusLine(Code const &code=200, std::string const &reason="OK", std::string const &version="HTTP/1.1")
Construct from components.
Definition: Header.cpp:113
UI::Util::File::File
File(std::string const &name, int flags=O_CREAT|O_WRONLY, mode_t mode=S_IRUSR|S_IWUSR, bool closeFd=true)
Constructor.
Definition: File.cpp:176
Sys.hpp
UI::Util::guessConfFile
std::string guessConfFile(std::string const &id, std::string const &suffix)
Guess a config file (/etc/id.conf or ~/.id.conf).
Definition: File.cpp:23
UI::Util::Converter::Exception
CodeException< ErrorCode > Exception
Exceptions for this class.
Definition: Recoder.hpp:93
UI::Util::Http::HeaderField::get
std::string get() const
Get composition.
Definition: Header.cpp:200
UI::Util::SysLogMono::~SysLogMono
~SysLogMono()
Destructor.
Definition: SysLogMono.cpp:30
UI::Util::CmdLine::Cmd::getArg
std::string getArg(int i) const
Get the argument of a parsed command.
Definition: CmdLine.cpp:145
UI::Util::MutexLock::Exception
CodeException< ErrorCode > Exception
This classes exceptions.
Definition: Misc.hpp:190
UI::Util::QuotaInfo::getINodeTL
time_t getINodeTL() const
Inodes timer limit.
Definition: QuotaInfo.cpp:482
UI::Util::CmdLine::CmdLine
Simple Command Line interface.
Definition: CmdLine.hpp:50
UI::Util::Http::URL::addParam
URL & addParam(std::string const &key, std::string const &value)
Add param to query part (auto-adds query part if not already added)
Definition: URL.cpp:34
UI::Util::CmdLine::CmdLine::HelpCmd
friend class HelpCmd
These two need access to CmdLine variables – might be better to encapsulate further ;).
Definition: CmdLine.hpp:52
UI::Util::Http::RequestLine
Parse and represent a request's request line.
Definition: Header.hpp:38
UI::Util::realpath
std::string realpath(std::string const &path)
Get canonical absolute path name.
Definition: Misc.cpp:12
UI::Util::join
std::string join(std::string const &expr, C const &list)
join a list,vector,set, ... with the connector string
Definition: Text.hpp:253
QuotaInfo.hpp
UI::Util::CLOption::getCOptLong
virtual option * getCOptLong(option *opt) const
Get GNU getopt_long(3) represention of this option.
Definition: GetOpt.cpp:58
UI::Util::PosixRegex::Exception
CodeException< reg_errcode_t > Exception
Exceptions we might throw.
Definition: PosixRegex.hpp:39
UI::Util::XConversion
a class to convert between different systems.
Definition: Text.hpp:321
UI::Util::Http::URLGet
Definition: URL.hpp:46
UI::Util::nssleep
unsigned int nssleep(unsigned int seconds)
No Signal Seconds Sleep: Using POSIX nanosleep(2).
Definition: Time.cpp:47
UI::Util::IdnEMailConverter::make
Conversion const * make(char const *const buf, size_t const bufSize) const
Convert from byte buffer.
Definition: Recoder.cpp:491
UI::Util::CmdLine::Cmd::getHelp
std::string getHelp(bool showArgs=false) const
Print help (i.e., syntax + documentation text).
Definition: CmdLine.cpp:76
UI::Util::AutoRemoveFile
Guarantuee to run "remove(2)" on path in destructor.
Definition: File.hpp:57
UI::Util::CmdLine::CmdLine::SourceCmd
friend class SourceCmd
These two need access to CmdLine variables – might be better to encapsulate further ;).
Definition: CmdLine.hpp:54
File.hpp
File, descriptors and sockets.
UI::Util::asciiCAPS
std::string asciiCAPS(std::string const &in, bool const upper)
ASCII CAPS converter for strings (using std::tolower|upper).
Definition: Text.cpp:65
UI::Util::CmdLine::EchoCmd
Internal command: Print text.
Definition: CmdLine.cpp:377
CmdLine.hpp
Utility for easy command line interfaces.
UI::Util::Http::Connection
Definition: Connection.hpp:21
UI::Util::getenv
std::string getenv(std::string const &name)
Like getenv(3), but returns empty string when env is missing.
Definition: File.cpp:17
UI::Util::Socket
Socket abstraction.
Definition: Socket.hpp:36
UI::Util::auto_free
Control freeing of memory via std::free.
Definition: Misc.hpp:128
UI
Namespace for any Schlund+Partner C++ code.
Definition: auto_ptr_compat.hpp:16
UI::Util::FileDescriptor::fdClose
static void fdClose(int const &fd, std::string const &id, bool const &doClose=true)
Helper to close file descriptors from destructors.
Definition: File.cpp:133
UI::Util::PosixFileMutex::PosixFileMutex
PosixFileMutex(std::string const &lockFile)
Constructor from file name.
Definition: File.cpp:193
UI::Util::FileDescriptor::ErrorCode
ErrorCode
Error codes for exceptions.
Definition: File.hpp:111
UI::Util::auto_base::auto_base
auto_base(P *const p=0)
Construct from any pointer (may be 0).
Definition: Misc.hpp:75
UI::Util::RealTimeStamp
RealTimeStamp class encapsulating "gettimeofday".
Definition: Time.hpp:52
UI::Util::QuotaInfo::Exception
QuotaInfo exceptions.
Definition: QuotaInfo.hpp:112
UI::Util::QuotaInfo::getINodeHL
unsigned long getINodeHL() const
Hard limit of inodes.
Definition: QuotaInfo.cpp:478
Recoder.hpp
UI::Util::PIDFile
Write and keep pid file during lifetime.
Definition: File.hpp:33
UI::Util::UnixSocket::unixBind
UnixSocket & unixBind(uid_t uid=::geteuid(), gid_t gid=::getegid(), mode_t mode=S_IRUSR|S_IWUSR, bool silentUnlink=true)
Bind this unix socket.
Definition: Socket.cpp:350
UI::Util::Converter::getID
std::string getID() const
Get id (informational).
Definition: Recoder.cpp:90
UI::Util::RealTimeStamp::operator-=
RealTimeStamp & operator-=(RealTimeStamp const &rt)
Standard -= operator.
Definition: Time.cpp:143
UI::Util::FDTypeBuf::overflow
virtual int overflow(int c)
streambuf overflow overload.
Definition: Socket.hpp:180
UI::Util::Conversion::get
char const * get() const
Get conversion data.
Definition: Recoder.cpp:34
UI::Util::ProcessThread::ReservedStatus
ReservedStatus
Reserved exit status'. Do not use these as return codes in your run()-functions.
Definition: Thread.hpp:50
UI::Util::GetOpt::Type
Type
All three possible types of CLOption* Classes.
Definition: GetOpt.hpp:179
UI::Util::CmdLine::Cmd::commandFromLine
static std::string commandFromLine(std::string const &line)
Helper function.
Definition: CmdLine.cpp:215
UI::Util::strtoks
StrVec strtoks(std::string const &s, std::string const &delims, std::string const &prefix, std::string const &postfix)
Like strtok, but you can use a list of one-char delimiters (delims in strtoks) instead of a fixed del...
Definition: Text.cpp:157
UI::Util::Rfc2047Converter::Rfc2047Converter
Rfc2047Converter(std::string const &inCharEnc)
Constructor; inEnc and outEnc are fixed by the encode flag.
Definition: Recoder.cpp:394
UI::Util::QuotaInfo::getINodeSL
unsigned long getINodeSL() const
Soft limit of inodes.
Definition: QuotaInfo.cpp:479
UI::Util::FDTypeStream::FDTypeStream
FDTypeStream(int fd, bool closeFd=false)
Definition: Socket.hpp:231
UI::Util::GetOpt::wrongUsage
int wrongUsage(std::string const &reason, std::string const &title="\nUsage:\n\n") const
Helper.
Definition: GetOpt.cpp:293
UI::Util::RealTimeStamp::ErrorCode
ErrorCode
Error codes for exceptions.
Definition: Time.hpp:56
UI::Util::FQuotaInfo
Variant of QuotaInfo from any file in FS.
Definition: QuotaInfo.hpp:191
UI::Util::auto_free::auto_free
auto_free(P *const p)
Control this memory allocated via std::*alloc.
Definition: Misc.hpp:131
UI::Util::QuotaInfo::getINodes
unsigned long getINodes() const
Current inode usage.
Definition: QuotaInfo.cpp:480
UI::Util::XConversion::xorDecrypt
static std::string xorDecrypt(const unsigned char *message, const int length, std::string const &key)
Definition: Text.cpp:303
UI::Util::SocketPair::SocketPair
SocketPair(bool const &closeFd=true)
socketpair(2) abstraction.
Definition: Socket.cpp:386
UI::Util::operator<<
std::ostream & operator<<(std::ostream &os, RealTimeStamp const &rt)
Streaming operator for RealTimeStamp.
Definition: Time.cpp:183
UI::Util::Rfc3490Utf8Converter
Converter UTF-8 <-> rfc3490 (IDN).
Definition: Recoder.hpp:244
UI::Util::CFileStream::get
FILE * get() const
Get C file stream.
Definition: File.cpp:88
UI::Util::URLConverter
Converter for URL-Encoding.
Definition: Recoder.hpp:158
UI::Util::ScopeRealTime
Log time used for a scope.
Definition: Time.hpp:129
UI::Util::Http::Cookie
Definition: Cookie.hpp:24
UI::Util::CLOption::getArg
std::string getArg() const
Get argument given with this option.
Definition: GetOpt.cpp:53
UI::Exception
Generic exception class for namespace UI.
Definition: Exception.hpp:99
UI::Util::CapScope
Helper to enable effective capabilities safely for a scope.
Definition: Cap.hpp:47
UI::Util::IConvConverter::make
Conversion const * make(char const *const buf, size_t const bufSize) const
Convert from byte buffer.
Definition: Recoder.cpp:206
UI::Util::Http::RequestLine::RequestLine
RequestLine(Method const &method=Post_, std::string const &uri="/", std::string const &version="HTTP/1.1")
Construct from components.
Definition: Header.cpp:58
UI::Util::Socket::read
virtual std::streamsize read(void *const buf, std::streamsize count)
C++-like virtual read method.
Definition: Socket.cpp:227
UI::Util::CmdLine::CmdLine::add
void add(Cmd *cmd)
Add a command to the command line.
Definition: CmdLine.cpp:433
Text.hpp
Text, descriptors and sockets.
UI::Util::URLConverter::make
Conversion const * make(char const *const buf, size_t const bufSize) const
Convert from byte buffer.
Definition: Recoder.cpp:261
PosixRegex.hpp
Posixregex, descriptors and sockets.
UI::Util::Socket::listen
Socket & listen(int backlog=16)
Start listening.
Definition: Socket.cpp:147
UI::Util::ProcessThread::isRunning
bool isRunning()
Definition: Thread.cpp:103
UI::Util::CmdLine::ExitCmd
Internal command: Exit command line.
Definition: CmdLine.cpp:234
UI::Util::EUIDSwap::ErrorCode
ErrorCode
Error codes for exceptions.
Definition: Misc.hpp:260
UI::Util::auto_free::~auto_free
~auto_free()
Free memory via std::free.
Definition: Misc.hpp:136
UI::Util::Conversion::getString
std::string getString() const
Get std::string copy of conversion data.
Definition: Recoder.cpp:44
UI::Util::QuotaInfo::getFreeBlocksHL
bool getFreeBlocksHL(unsigned long &free) const
Get free blocks from hard limit. False, if there is no hard limit.
Definition: QuotaInfo.cpp:485
Connection.hpp
UI::Util::Default
T Default()
Defaults values for some types via template specialization.
Definition: Text.hpp:64
UI::Util::MutexLock::MutexLock
MutexLock(Mutex &mutex, bool wait=true)
Constructor; locks the mutex.
Definition: Misc.hpp:197
UI::Util::CmdLine::Cmd::getSyntax
std::string getSyntax() const
Get syntax line: cmd arg1 arg2 [arg3].
Definition: CmdLine.cpp:66
UI::Util::SysLogMono::operator()
SysLogMono & operator()(int level)
Log operator.
Definition: SysLogMono.cpp:49
UI::Util::Http::HeaderField
Header field.
Definition: Header.hpp:140
UI::Util::XConversion::base64Decode
static UI::Util::auto_ptr< unsigned char > base64Decode(std::string const &message, int *length)
Definition: Text.cpp:357
UI::Exception::Exception
Exception(std::string const &what=NoWhatGiven_, std::string const &debug=NoDebugGiven_, int const &errNo=0)
Construct with description text.
Definition: Exception.cpp:15
UI::Util::URLConverter::encode
static std::string encode(std::string const &url)
Encode an URL string.
Definition: Recoder.cpp:293
UI::Util::CmdLine::HeaderCmd::HeaderCmd
HeaderCmd(std::string const &header)
Definition: CmdLine.cpp:222
Cookie.hpp
UI::Util::Sys::getconf
std::string getconf(int id)
Loosely like the shell utility "getconf".
Definition: Sys.cpp:751
UI::Util::INetSocket::connect
virtual INetSocket & connect()
Connect this socket.
Definition: Socket.cpp:301
UI::Util::Http::SetCookie
Handle "SetCookie" request header field values syntactically.
Definition: Cookie.hpp:71
UI::Util::auto_base::set
void set(P *const p)
Set controlled pointer (must not be 0).
Definition: Misc.hpp:80
UI::Util::CLOptionOptArg::printUsage
virtual void printUsage() const
Print usage information for this option.
Definition: GetOpt.cpp:145
UI::Util::UnixSocket
Unix Socket.
Definition: Socket.hpp:130
UI::Util::File
File representation.
Definition: File.hpp:180
UI::Util::RealTimeStamp::set
RealTimeStamp & set(long int const &sec, long int const &usec)
Set time stamp manually.
Definition: Time.cpp:65
UI::Util::ProcessThread::getPID
pid_t getPID() const
Get PID of running "thread".
Definition: Thread.cpp:62
UI::Util::freeAnySeqContainer
void freeAnySeqContainer(std::vector< ElType * > &l)
Run "std::free" on all vector elements, and clear the vector. *>.
Definition: Misc.hpp:41
UI::Util::Cpp2Base64Converter
Converter for Base64 encoding, using CommonCpp functions.
Definition: Recoder.hpp:224
UI::Util::GetOpt::GetOpt
GetOpt(int argc, char *const *const argv)
Standard constructor.
Definition: GetOpt.cpp:162
UI::Util::Socket::connect
virtual Socket & connect()
Connect this socket.
Definition: Socket.cpp:142
UI::Util::GetOpt::printUsage
void printUsage(std::string const &title="\nUsage:\n\n") const
Prints out Usage information to cout (stdout).
Definition: GetOpt.cpp:300
UI::Util::Default< float >
float Default< float >()
Default-Specialising.
Definition: Text.hpp:68
UI::Util::XConversion::xorEncrypt
static UI::Util::auto_ptr< unsigned char > xorEncrypt(std::string const &message, std::string const &key, int *length)
Definition: Text.cpp:285
UI::Util::ProcessThread::wait
int wait()
Wait for this "thread", and return the process' exit status.
Definition: Thread.cpp:109
UI::Util::CmdLine::Cmd::getName
std::string getName() const
Get command name.
Definition: CmdLine.cpp:47
UI::Util::CStrArray::add
CStrArray & add(std::string const &str)
Add string to array.
Definition: Text.cpp:126
UI::Util::LibRecodeConverter
Converter based on librecode (see there).
Definition: Recoder.hpp:124
UI::Util::SysLogMonoSingleton::SysLogMonoSingleton
SysLogMonoSingleton(std::string const &ident, int option, int facility)
Definition: SysLogMono.cpp:55
UI::Util::Converter::ErrorCode
ErrorCode
Error codes for exceptions.
Definition: Recoder.hpp:87
UI::Util::Http::SetCookie::getLine
std::string getLine(std::string const &prefix="", std::string const &expiresDefault="", std::string const &pathDefault="", std::string const &domainDefault="") const
Composition.
Definition: Cookie.cpp:277
UI::Util::RealTimeStamp::RealTimeStamp
RealTimeStamp(long int const &sec=0, long int const &usec=0)
Standard constructor.
Definition: Time.cpp:60
UI::Util::eato
std::pair< out_type, bool > eato(std::string const &t, StreamModifier const m=0)
String-to-anything converter with error handling.
Definition: Text.hpp:88
UI::Util::RealTimeStamp::operator+
RealTimeStamp operator+(RealTimeStamp const &rt) const
Standard + operator.
Definition: Time.cpp:136
CharsetMagic.hpp
UI::Util::CLOptionArg::getCOptShort
virtual std::string getCOptShort() const
Get GNU getopt(3) represention of this option.
Definition: GetOpt.cpp:96
Time.hpp
UI::Util::ProcessThread::getStatus
int getStatus() const
Get status of last run.
Definition: Thread.cpp:98
UI::Util::CmdLine::SourceCmd
Internal command: Source another script.
Definition: CmdLine.cpp:329
UI::Util::CmdLine::CmdLine::CmdLine
CmdLine(std::istream *is=&std::cin, std::ostream *os=&std::cout, std::ostream *es=&std::cerr, std::string const &title="Simple Command Line Interface", std::string const &prompt="\nCommand # ")
Definition: CmdLine.cpp:393
UI::Util::auto_cvec
Control freeing of C vector pointers via delete[].
Definition: Misc.hpp:105
UI::Util::ProcessThread::run
virtual int run()=0
UI::Util::UnixSocket::bind
virtual UnixSocket & bind()
Bind this socket.
Definition: Socket.cpp:345
Header.hpp
UI::Util::RealTimeStamp::operator<=
bool operator<=(RealTimeStamp const &rt) const
Standard <= operator.
Definition: Time.cpp:123
UI::Util::Http::Exception
Exception for Http namespace.
Definition: Header.hpp:24
UI::Util::RealTimeStamp::operator-
RealTimeStamp operator-(RealTimeStamp const &rt) const
Standard - operator.
Definition: Time.cpp:162
UI::Util::SocketPair
socketpair(2) abstraction.
Definition: Socket.hpp:245
UI::Util::CmdLine::Cmd::setCL
void setCL(CmdLine *cl)
Set Command Line Pointer; This must be run when adding commands from a CmdLine.
Definition: CmdLine.cpp:184
UI::Util::Http::URL
HTTP URL parser.
Definition: URL.hpp:19
UI::Util::Converter::make
virtual Conversion const * make(char const *const buf, size_t const bufSize) const =0
Convert from byte buffer.
UI::Util::ProcessThread
Simple encapsulation for any process based threading system.
Definition: Thread.hpp:41
UI::Util::RecoderCache
This can be used to cache recoder instances.
Definition: Recoder.hpp:304
UI::Util::nsnsleep
unsigned int nsnsleep(long int nanoseconds)
No Signal Nano Sleep.
Definition: Time.cpp:52
UI::Util::CLOption::CLOption
CLOption(std::string const &nameLong, char nameShort, std::string const &doc="No documentation for this option.", std::string const &defaultArg="")
Standard constructor. Normally, you would not use this directly, but rather use GetOpt::set.
Definition: GetOpt.cpp:21
UI::Util::Cpp2Base64Converter::make
Conversion const * make(char const *const buf, size_t const bufSize) const
Convert from byte buffer.
Definition: Recoder.cpp:371
UI::Util::delAnySeqContainer
void delAnySeqContainer(std::vector< ElType * > &l)
Run "delete" on all vector elements, and clear the vector. *>.
Definition: Misc.hpp:27
UI::Util::QuotaInfo::getMethod
std::string getMethod() const
Get method string of utilized method.
Definition: QuotaInfo.cpp:474
UI::Util::CFileStream
Simple exception-save FILE abstraction.
Definition: File.hpp:68
UI::Util::StringConversion::StringConversion
StringConversion(std::string *str)
Constructor. str will be delete'd.
Definition: Recoder.cpp:61
UI::Util::CLOption::getNameShort
char getNameShort() const
Get the short name.
Definition: GetOpt.cpp:38
UI::Util::Exception
Generic exception class for namespace UI::Util.
Definition: Exception.hpp:155
UI::Util::CmdLine::SetCmd
Internal command: Set a variable.
Definition: CmdLine.cpp:290
UI::Util::PosixRegex::Match
Helper class representing match data.
Definition: PosixRegex.hpp:43
UI::Util::FDTypeBuf::bufPutbackSize_
int bufPutbackSize_
Buffer control variables.
Definition: Socket.hpp:175
UI::Util::CLOption::getDoc
std::string getDoc() const
Get the documentation.
Definition: GetOpt.cpp:43
UI::Util::QuotaInfo::getBlockSL
unsigned long getBlockSL() const
Soft limit of disk blocks.
Definition: QuotaInfo.cpp:476
UI::Util::Http::RequestLine::get
std::string get() const
Get composition.
Definition: Header.cpp:106
UI::Util::CLOptionOptArg::CLOptionOptArg
CLOptionOptArg(std::string const &nameLong, char nameShort, std::string const &doc="No documentation for this option.", std::string const &defaultArg="")
Standard constructor.
Definition: GetOpt.cpp:127
UI::Util::RealTimeStamp::setMax
RealTimeStamp & setMax()
Set this stamp to maximum.
Definition: Time.cpp:73
UI::Util::CmdLine::CmdLine::setVar
void setVar(std::string const &key, std::string const &value)
Set variable value.
Definition: CmdLine.cpp:498
UI::Util::Conversion
Holder class for conversion results.
Definition: Recoder.hpp:27
UI::Util::auto_cvec::auto_cvec
auto_cvec(P *const p)
Control this C vector pointer created via new P[n].
Definition: Misc.hpp:108
UI::Util::Socket::accept
int accept(long int toSeconds=0, long int toMicroSeconds=0)
Accept an incoming socket connection.
Definition: Socket.cpp:160
UI::Util::getTimeValSec
long int getTimeValSec()
Get "sec"-part from gettimeofday(2).
Definition: Time.cpp:17
UI::Util::RealTimeStamp::stamp
RealTimeStamp & stamp()
Set time stamp from current time.
Definition: Time.cpp:89
UI::Util::Rfc3490Utf8Converter::make
Conversion const * make(char const *const buf, size_t const bufSize) const
Convert from byte buffer.
Definition: Recoder.cpp:463
UI::Util::LibRecodeConverter::make
Conversion const * make(char const *const buf, size_t const bufSize) const
Convert from byte buffer.
Definition: Recoder.cpp:148
UI::Util::EUIDSwap::getOrigUID
uid_t getOrigUID() const
Get the original effective user id.
Definition: Misc.cpp:32
Cap.hpp
UI::Util::FileDescriptor::init
void init(int fd, bool closeFd=false)
To be called in a constructor.
Definition: File.cpp:169
UI::Util::ProcessThread::start
virtual void start()=0
Start fork "thread".
UI::Util::CmdLine::Cmd::addArg
void addArg(std::string const &name, std::string const &help="No help for this option")
Add mandatory argument. Use this in constructors of custom Cmd classes.
Definition: CmdLine.cpp:52
UI::Util::FileDescriptor::getFd
int getFd() const
Get file descriptor.
Definition: File.cpp:164
UI::Util::FDTypeBuf::underflow
virtual int underflow()
streambuf underflow overload.
Definition: Socket.hpp:200
Socket.hpp
Socket, descriptors and sockets.
UI::Util::StringConversion
Conversion w/ std::string holder.
Definition: Recoder.hpp:71
UI::Util::XConversion::dec2Basis
static std::string dec2Basis(int number, int basis)
Definition: Text.cpp:246
UI::Util::SysLogMono
C++ Abstraction of syslog(3) for mono threaded applications.
Definition: SysLogMono.hpp:28
UI::Util::CmdLine::CmdLine::es
std::ostream & es()
Get in-stream.
Definition: CmdLine.cpp:453
UI::Util::PosixRegex::Match::begin
unsigned begin
Definition: PosixRegex.hpp:49
URL.hpp
UI::Util::BSDFileMutex::BSDFileMutex
BSDFileMutex(std::string const &lockFile)
Constructor from file name.
Definition: File.cpp:237
Exception.hpp
UI::Util::RealTimeStamp::getSeconds
long double getSeconds() const
Get seconds (since Epoch) as real number (including micro seconds).
Definition: Time.cpp:108
UI::Util::QuotaInfo::getFreeBlocksSL
bool getFreeBlocksSL(unsigned long &free) const
Get free blocks from soft limit. False, if there is no soft limit.
Definition: QuotaInfo.cpp:490
UI::Util::CmdLine::Cmd::isParsed
bool isParsed() const
Check if we are in "parsed" state.
Definition: CmdLine.cpp:143
UI::Util::QuotaInfo::Type
Type
Type of quota information.
Definition: QuotaInfo.hpp:63
UI::Util::RealTimeStamp::Exception
CodeException< ErrorCode > Exception
This classes exceptions.
Definition: Time.hpp:60
UI::Util::RealTimeStamp::setMin
RealTimeStamp & setMin()
Set this stamp to minimum (Epoch)
Definition: Time.cpp:83
UI::Util::Http::SetCookie::setLine
SetCookie & setLine(std::string const &line)
This resets all values and sets the values in line.
Definition: Cookie.cpp:197
UI::Util::CmdLine::HeaderCmd
Pseudo command class to add header like seperators in help descriptions.
Definition: CmdLine.hpp:219
UI::Util::CLOptionOptArg::getCOptLong
virtual option * getCOptLong(option *opt) const
Get GNU getopt_long(3) represention of this option.
Definition: GetOpt.cpp:137
SysLogMono.hpp
Syslog Mono Log: Singleton logger using syslog() for mono threaded applications.
UI::Util::PosixRegex::PosixRegex
PosixRegex(std::string const &regex, int cflags=0)
Definition: PosixRegex.cpp:21
UI::Util::RealPath
Get canonical absolute path name (mutex-protected)
Definition: Misc.hpp:239
Thread.hpp
Thread, descriptors and sockets.
UI::Util::fileModificationTime
time_t fileModificationTime(std::string const &path)
Get the modification time for a file.
Definition: File.cpp:121
UI::Util::StdFreeConversion
Conversion w/ std::free call on the supplied C-String.
Definition: Recoder.hpp:60
UI::Util::Cpp2Base64Converter::Cpp2Base64Converter
Cpp2Base64Converter(bool const encode=true)
Constructor; inEnc and outEnc are fixed by the encode flag.
Definition: Recoder.cpp:367
UI::Util::CLOptionOptArg
Class representing a command line option with optional argument.
Definition: GetOpt.hpp:150
UI::Util::GetOpt::get
CLOption * get(char nameShort)
Get an option object from short name.
Definition: GetOpt.cpp:196
UI::Util::URLConverter::URLConverter
URLConverter(bool const encode=true)
Constructor; inEnc and outEnc are fixed by the encode flag.
Definition: Recoder.cpp:257
UI::Util::CmdLine::CmdLine::showVars
void showVars()
Show (print) all variable values.
Definition: CmdLine.cpp:531
UI::Util::Default< int >
int Default< int >()
Default-Specialising.
Definition: Text.hpp:66
UI::Util::QuotaInfo::getFreeINodesHL
bool getFreeINodesHL(unsigned long &free) const
Get free indoes from hard limit. False, if there is no hard limit.
Definition: QuotaInfo.cpp:495
UI::Util::Conversion::Conversion
Conversion(char const *const cStr, size_t const cSize)
Constructor.
Definition: Recoder.cpp:24
UI::Util::GetOpt::isValid
bool isValid()
Check if given command line arguments are "well-formed".
Definition: GetOpt.cpp:284
UI::Util::Conversion::getSize
size_t getSize() const
Get size (in bytes) of conversion data.
Definition: Recoder.cpp:39
UI::Util::strtok
StrVec strtok(std::string const &s, std::string const &delim, std::string const &prefix, std::string const &postfix)
Generate any STL container of strings from a token string.
Definition: Text.cpp:152
UI::Util::CStrArray::get
char const ** get() const
Get C string array.
Definition: Text.cpp:145
UI::Util::CLOptionOptArg::getCOptShort
virtual std::string getCOptShort() const
Get GNU getopt(3) represention of this option.
Definition: GetOpt.cpp:131
UI::Util::CmdLine::CmdLine::os
std::ostream & os()
Get out-stream.
Definition: CmdLine.cpp:452
UI::Util::MutexLock::ErrorCode
ErrorCode
Error codes for exceptions.
Definition: Misc.hpp:186
UI::Util::CmdLine::Cmd::getMaxArgs
int getMaxArgs() const
Get max args.
Definition: CmdLine.cpp:64
UI::Util::Http::Header::get
std::string get() const
Get composition.
Definition: Header.cpp:260
UI::Util::CLOptionArg::getCOptLong
virtual option * getCOptLong(option *opt) const
Get GNU getopt_long(3) represention of this option.
Definition: GetOpt.cpp:102
UI::Util::CLOption::printUsage
virtual void printUsage() const
Print usage information for this option.
Definition: GetOpt.cpp:76
UI::Util::ForkThread
Simple encapsulation of fork(2) using common thread syntax.
Definition: Thread.hpp:100
UI::Util::FDTypeBuf::traits
std::streambuf::traits_type traits
Shortcut.
Definition: Socket.hpp:171
UI::Util::nanosleep
unsigned int nanosleep(unsigned int seconds, long int nanoseconds)
No Signal Sleep: Using POSIX nanosleep(2).
Definition: Time.cpp:31
UI::Util::genAlphaNumericKey
std::string genAlphaNumericKey(int len)
For compatibility only.
Definition: Text.cpp:108
UI::Util::CmdLine::Cmd::stripLine
static std::string stripLine(std::string const &line)
Helper function.
Definition: CmdLine.cpp:207
UI::Util::FsInfo
File system information abstraction.
Definition: File.hpp:301
UI::Util::CmdLine::Cmd::Cmd
Cmd(std::string const &name, std::string const &help="No help for this command")
Standard constructor.
Definition: CmdLine.cpp:32
UI::Util::delStringMap
void delStringMap(std::map< std::string, ElType * > &l)
Utility to delete any map<string, anytype>.
Definition: Misc.hpp:55
UI::Util::FileDescriptor::~FileDescriptor
virtual ~FileDescriptor()
Destructor.
Definition: File.cpp:147
UI::Util::INetSocket
INet Socket.
Definition: Socket.hpp:111
UI::Util::Default< bool >
bool Default< bool >()
Default-Specialising.
Definition: Text.hpp:74
UI::Util::RealTimeStamp::operator<
bool operator<(RealTimeStamp const &rt) const
Standard < operator.
Definition: Time.cpp:118
UI::Util::FileDescriptor::read
virtual std::streamsize read(void *const buf, std::streamsize count)
C++ like virtual read method.
Definition: File.cpp:152
UI::CodeException
Adding code facility to Exception.
Definition: Exception.hpp:139
UI::Util::FileDescriptor::fd_
int fd_
The file descriptor that is managed.
Definition: File.hpp:166
UI::Util::PIDFile::guess
static std::string guess(std::string const &id)
Guess a pid file (/var/run/id.pid or ~/.id.pid).
Definition: File.cpp:32
UI::Util::Http::Cookies
Handle "Cookie" request header field values syntactically.
Definition: Cookie.hpp:38
UI::Util
Namespace for ui-utilcpp.
Definition: auto_ptr_compat.hpp:17
UI::Util::IdnEMailConverter::IdnEMailConverter
IdnEMailConverter(std::string const &inEnc)
Constructor; inEnc and outEnc are fixed by the encode flag.
Definition: Recoder.cpp:487
UI::Util::auto_base::get
P * get() const
Get underlying pointer.
Definition: Misc.hpp:87
UI::Util::auto_base::p_
P * p_
Controlled pointer.
Definition: Misc.hpp:99
UI::Util::PosixRegex::Match::matches
bool matches
Definition: PosixRegex.hpp:47
UI::Util::Http::SetCookies
Handle a vector of SetCookie's.
Definition: Cookie.hpp:122
UI::Util::CStrArray
Helper to construct/use C-String arrays ("char **"), occasionally needed by some c functions.
Definition: Text.hpp:182
UI::Util::strerror
std::string strerror(int const &errNo)
Save wrapper for strerror. Always use this instead of strerror directly.
Definition: Text.cpp:25
UI::Util::FileDescriptor
File Descriptor Holder Class.
Definition: File.hpp:104
UI::Util::FDTypeBuf
Template IO stream buffer for all file descriptors types.
Definition: Socket.hpp:153
UI::Util::Rfc3490Utf8Converter::Rfc3490Utf8Converter
Rfc3490Utf8Converter(bool const encode=true)
Constructor; inEnc and outEnc are fixed by the encode flag.
Definition: Recoder.cpp:459
UI::Util::CmdLine::CmdLine::showVar
void showVar(std::string const &key)
Show (print) variable value.
Definition: CmdLine.cpp:525
UI::Util::Http::StatusLine
Parse and represent a response's status line.
Definition: Header.hpp:100
UI::Util::MutexLock
Mutex Lock class; an object of this class will guard a scope.
Definition: Misc.hpp:182
UI::Util::FDTypeBuf::xsputn
virtual std::streamsize xsputn(const char *s, std::streamsize n)
streambuf xsputn overload.
Definition: Socket.hpp:194
UI::Util::CLOption::isGiven
bool isGiven() const
Check if this option was given.
Definition: GetOpt.cpp:48
UI::Util::FDTypeBuf::FDTypeBuf
FDTypeBuf(int fd, bool closeFd=false, int bufPutbackSize=4, int bufDataSize=1024)
Constructor for file descriptor stream buffer.
Definition: Socket.hpp:156
UI::Util::getlineCRLF
std::string getlineCRLF(std::istream &s)
Like std::getline, but also rips of trailing "CR" when line break was CRLF.
Definition: Text.cpp:51
UI::Util::QuotaInfo::getBlockTL
time_t getBlockTL() const
Block timer limit.
Definition: QuotaInfo.cpp:481
UI::Util::Socket::write
virtual std::streamsize write(void const *const buf, std::streamsize count)
C++-like virtual write method.
Definition: Socket.cpp:233
UI::Util::StdFreeConversion::StdFreeConversion
StdFreeConversion(char *cStr, size_t const cSize)
Constructor. cStr will be std::free'd.
Definition: Recoder.cpp:51
UI::Util::PosixRegex::run
bool run(std::string const &text, int eflags=0)
Check if text matches.
Definition: PosixRegex.cpp:59
UI::Util::istream2String
std::string istream2String(std::istream &f, int const blockSize)
Istream-to-string converter.
Definition: Text.cpp:198
UI::Util::CmdLine::Cmd::parse
bool parse(std::string const &line)
Parse a line.
Definition: CmdLine.cpp:97
UI::Util::CLOption::getCOptShort
virtual std::string getCOptShort() const
Get GNU getopt(3) represention of this option.
Definition: GetOpt.cpp:70
UI::Util::ProcessThread::status_
int status_
Definition: Thread.hpp:83
UI::Util::CmdLine::CmdLine::run
int run()
Definition: CmdLine.cpp:539
UI::Util::UnixSocket::connect
virtual UnixSocket & connect()
Connect this socket.
Definition: Socket.cpp:374
UI::Util::SysLogMono::SysLogMono
SysLogMono(std::string const &ident, int option, int facility)
Definition: SysLogMono.cpp:20
UI::Util::XConversion::base64Encode
static std::string base64Encode(const unsigned char *message, const int length)
Definition: Text.cpp:321
UI::Util::FQuotaInfo::FQuotaInfo
FQuotaInfo(std::string const &fileName, int const id=Sys::geteuid(), Type const type=Usr_)
Definition: QuotaInfo.hpp:198
UI::Util::FDTypeBuf::buf_
char * buf_
Internal buffer.
Definition: Socket.hpp:177
UI::Util::IConvConverter::IConvConverter
IConvConverter(std::string const &inEnc, std::string const &outEnc, const bool &sloppy=false)
Constructor; this does not support sloppy encoding.
Definition: Recoder.cpp:189
UI::Util::EUIDSwap::Exception
CodeException< ErrorCode > Exception
This classes exceptions.
Definition: Misc.hpp:264
UI_THROW_CODE_ERRNO
#define UI_THROW_CODE_ERRNO(code, call)
Throw code exception w/ errno handling.
Definition: Exception.hpp:26
UI::Util::Socket::bind
virtual Socket & bind()
Bind this socket.
Definition: Socket.cpp:137
UI::Util::CmdLine::Cmd::getMinArgs
int getMinArgs() const
Get min args.
Definition: CmdLine.cpp:63
UI::Util::Http
Namespace for all HTTP related code.
Definition: Connection.cpp:9
UI::Util::StreamModifier
std::ios_base &(* StreamModifier)(std::ios_base &)
Stream modifier function (is there a std:: type??).
Definition: Text.hpp:79
UI::Util::Recoder::Recoder
Recoder(std::string const &inEnc, std::string const &outEnc, bool const &sloppy=false)
Constructor; sloppy is only supported by some converters.
Definition: Recoder.cpp:538