lib45d
45Drives C++ Library API Documentation
Namespaces | Classes | Functions
ffd Namespace Reference

45Drives namespace More...

Namespaces

 Socket
 Default parameters for sockets.
 

Classes

class  ByteParseException
 Throw this exception when Bytes::set() fails to parse string. More...
 
class  Bytes
 Use this class for byte-formatted values. e.g.: "123 KiB". More...
 
class  ConfigException
 General exception for all Config* related issues. More...
 
class  ConfigGuardException
 Throw this exception when a ConfigGuard is constructed or get_from() is called when the config is already guarded. More...
 
class  ConfigNode
 Class for config_map_ entries. More...
 
class  ConfigParser
 Main configuration parser class to inherit from in your code. More...
 
class  ConfigSubsectionGuard
 Use this to switch to a certain config subsection to get a group of values. More...
 
class  Exception
 Exceptions thrown by this library. More...
 
class  MissingOptionException
 Throw this exception when a config entry is missing. More...
 
class  MTDirCrawler
 Crawls through a directory with multiple worker threads, calling a calback function on each directory entry found. More...
 
class  NoConfigException
 Throw this exception when the config file fails to open. More...
 
class  Quota
 This class extends ffd::Bytes to specify percents of an amount of bytes. More...
 
class  QuotaParseException
 Throw this exception when Quota::parse_fraction() fails to parse string. More...
 
class  SocketAcceptException
 Thrown when accept() fails. More...
 
class  SocketAddressException
 Thrown when the socket address is too long. More...
 
class  SocketBase
 Base Unix Socket Class for opening and closing the socket. More...
 
class  SocketBindException
 Thrown when bind() fails. More...
 
class  SocketCloseException
 Thrown when close(fd_) returns -1 with strerror(errno) as what. More...
 
class  SocketConnectException
 Thrown when connect() fails. More...
 
class  SocketCreateException
 Thrown when socket() returns -1 with strerror(errno) as what. More...
 
class  SocketException
 General exception for all Socket* related issues. More...
 
class  SocketListenException
 
class  SocketReadException
 Thrown when read() fails. More...
 
class  SocketShutdownException
 Thrown when shutdown() fails. More...
 
class  SocketWriteException
 Thrown when write() fails. More...
 
class  UnixSocketClient
 Unix Socket Client class. Used for IPC through a named socket inode. More...
 
class  UnixSocketServer
 Unix Socket Server class. Used for IPC through a named socket inode. More...
 

Functions

bool pattern_match (const char *const str, const char *const pattern)
 Match a string against a wildcard pattern with '?' meaning any character and '*' meaning zero or more characters. More...
 

Detailed Description

45Drives namespace

Function Documentation

◆ pattern_match()

bool ffd::pattern_match ( const char *const  str,
const char *const  pattern 
)
inline

Match a string against a wildcard pattern with '?' meaning any character and '*' meaning zero or more characters.

Parameters
strString to check (nul terminated)
patternPattern to check against (nul terminated)
Returns
true String matches pattern
false String does not match pattern