ost(3)
π ost π
okay bestie, welcome to ost(3) β yes that's section 3 of the Library Functions Manual, the cute little corner of the man pages where the C library functions live. pull up a chair, grab a boba, we're doing this π
β¨ NAME β¨
ost
that's it. that's the name. ost. no cap, no extra words, the page just says its own name and moves on β iconic honestly π¦
stay tuned tho, because there's a whole lot more coming and you're gonna wanna see it π
β¨ SYNOPSIS β¨
okay bestie, buckle UP, because this is the master list of every class this library is serving, and there are so many of them π each one gets a lil one-liner so you know exactly what vibe it's bringing.
π Classes π
class AppLogβ Application logger is a class that implements a logger that can be used by applications to save log file somewhere on the system. your apps journaling their whole life, iconic behavior πclass Assocβ This class is used to associate (object) pointers with named strings. matching names to pointer besties, no cap β¨class AtomicCounterβ The AtomicCounter class offers thread-safe manipulation of an integer counter. counter go up, counter go down, threads never fight over it π«Άclass BaseObjectβ BaseObject. that's it. that's the whole description, and honestly? slay, minimalism ate πclass Bufferβ The buffer class represents an IPC service that is built upon a buffer of fixed capacity that can be used to transfer objects between one or more producer and consumer threads. fixed-capacity baddie moving objects between producers and consumers π¦class Cancellationβ A class to automatically set the thread cancellation mode of a member function. sets the mode for you, zero effort required πclass ChecksumDigestβ A simple checksum digest function. simple. digest. checksum. periodt πΈstruct cistring_char_traitsβ no description given, it's just vibing there, mysterious main character energy πclass CommandOptionβ CommandOption is the base class for all command line options. the blueprint every CLI flag descends from πclass CommandOptionArgβ Class for options with an argument e.g. takes a lil something-something along with the flag β¨class CommandOptionCollectβ It only makes sense to have a single one of these set and it is also exclusive withCommandOptionRest. one only, and it does NOT share the spotlight withCommandOptionRestπ«class CommandOptionNoArgβ CommandOption type for flags. no arg, just vibes, pure boolean energy πclass CommandOptionParseβ This is theCommandOptionParseinterface class. the interface, the contract, the whole mood π₯class CommandOptionRestβ It only makes sense to have a single one of these set and it is also exclusive withCommandOptionCollect. same deal as its rival: one only, and never withCommandOptionCollectπclass CommandOptionWithArgβ Derived class ofCommandOptionfor options that have a value associated with them. flags that come with a whole plus-one πclass Conditionalβ A conditional variable synchcronization object for one to one and one to many signal and control events between processes. signaling across processes, one-to-one and one-to-many, the social butterfly of sync objects π¦class Counterβ The counter template is used for generic objects which act as automatic counters. generic auto-counting, it just does it πclass CRC16Digestβ A crc16 collection/compution hash accumulator class. crc16 accumulation, collecting and computing πclass CRC32Digestβ A crc32 collection/computation hash accumulator class. crc32 edition, same energy, more bits βclass Dateβ The Date class uses a julian date representation of the current year, month, and day. julian date representation of year/month/day, keeping it old-school πclass DateNumberβ A number class that manipulates a string buffer that is also a date. a number that's secretly a date, double life fr fr πclass Datetimeβ The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time. julian date for the day, integer for the time, both at once, multitasking queen πclass DCCPSocketβ DCCP sockets are used for stream based connected sessions between two sockets. stream-based connected sessions between two sockets πclass Digestβ The digest base class is used for implementing and deriving one way hashing functions. the base class for one-way hashing, the ancestor of all the digests πΈclass Dirβ A low level portable directory class. low level, portable, directories, we love to see it β¨class DirTreeβ A generic class to walk a hierarchical directory structure. walking the whole tree structure like it's a runway πclass DSOβ The DSO dynamic loader class is used to load object files. loading object files dynamically, popping off π₯class Engineβ Engine. just Engine. iconic, mysterious, no notes πclass Eventβ The Event class implements a feature originally found in the WIN32 API; event notification. straight from the WIN32 API, event notification, retro but make it serve πclass Fileβ no description given, it's just File, being File, the moment π¦class FixedBufferβ A buffer class that holds a known capacity of fixed sized objects defined during creation. capacity locked in at creation time, fixed-size objects only π«Άclass HEXdumpβ Produces a dump of a buffer in a hexdump way with its code Ascii translation and relative buffer address. hex + ascii + relative buffer address, the full aesthetic πclass IPV4Addressβ The network name and address objects are all derived from a commonIPV4Addressbase class. the common ancestor every network name and address object descends from πclass IPV4Broadcastβ The broadcast address object is used to store the broadcast address for a specific subnet. storing the broadcast address for a specific subnet, doing its one job πclass IPV4Cidrβ The CIDR class is used to support routing tables and validate address policies. routing tables + address policy validation, the responsible one βclass IPV4Hostβ This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket. holding the real, valid internet address of a host you'll reach through a socket πclass IPV4Maskβ Internet addresses used specifically as masking addresses (such as ' 255.255.255.0') are held in theIPV4Maskderived object. " masking addresses like255.255.255.0live right here πclass IPV4Multicastβ A specialization ofIPV4Addressthat provides address validation for multicast addresses.IPV4Addressbut specialized for multicast validation πΈclass IPV4MulticastValidatorβ Class for the function object that validates multicast addresses. the function object that does the multicast validating πclass IPV4Validatorβ Classes derived fromIPV4Addresswould require an specific validator to pass to theIPV4Addressconstructor. derived classes gotta hand a specific validator to theIPV4Addressconstructor, rules are rules β¨class IPV6Addressβ The network name and address objects are all derived from a commonIPV6Addressbase class. same deal as v4, but make it IPV6, the common base class π¦class IPV6Broadcastβ The broadcast address object is used to store the broadcast address for a specific subnet. broadcast address for a specific subnet, holding it down πclass IPV6Cidrβ The CIDR class is used to support routing tables and validate address policies. routing tables and address policy validation, v6 flavor π₯class IPV6Hostβ This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket. the actual valid internet address of a host, socket-bound πclass IPV6Maskβ Internet addresses used specifically as masking addresses (such as ' 255.255.255.0') are held in theIPV6Maskderived object. " masking addresses like255.255.255.0but in theIPV6Maskderived object πclass IPV6Multicastβ A specialization ofIPV6Addressthat provides address validation for multicast addresses. specializedIPV6Addresswith multicast validation on board πclass IPV6MulticastValidatorβ Class for the function object that validates multicast addresses. the multicast-validating function object, v6 edition βclass IPV6Validatorβ Classes derived fromIPV6Addresswould require an specific validator to pass to theIPV6Addressconstructor. derived classes must pass a specific validator to theIPV6Addressconstructor, no skipping πclass IZStreamβ no description given, it's just out here existing, z-streaming silently π¦class Keydataβ Keydata objects are used to load and hold 'configuration' data for a given application. loading and holding an app's config data, the keeper of secrets πclass keyMapβ no description given, a quiet little keymap just doing its thing πclass LinkedDoubleβ Self managed double linked list object chain. self-managed doubly linked chain, handling itself fr fr β¨class LinkedSingleβ Self managed single linked list object chain. single linked version, still fully self-managed πclass Lockfileβ This class is used to create a 'named' lock entity that can be used to control access to a resource between multiple processes. named lock entities keeping multiple processes from stepping on each other πΈclass MapIndexβ TheMapIndexallows linear access into aMapTable, that otherwise could have its elements being retrieved only by key. linear access into aMapTablethat normally only gives you elements by key, glow up π₯class MapObjectβ TheMapObjectis a base class which can be used to make a derived class operate on aMapTable. base class so your derived class can operate on aMapTableπclass MappedFileβ Create and map a disk file into memory. disk file β memory, mapped, done πclass MapTableβ A map table allows for entities to be mapped (hash index) onto it. entities get hash-indexed onto it, mapping behavior π¦class MD5Digestβ A md5 collection/computation accululator class. md5 accumulating, collecting, computing, the whole trio πclass MemPagerβ The memory pager is used to allocate cumulative memory pages for storing object specific 'persistant' data that is presumed to persist during the life of a given derived object. cumulative memory pages for object-specific 'persistant' data that lives as long as the derived object does βclass MemPagerObjectβ This class is used to create derived classes which are constructed within a memory pager pool. derived classes get constructed inside a memory pager pool, cozy πclass MIMEFormDataβ This is a document part type for use in submitting multipart form data to a web server. a document part type for shipping multipart form data to a web server πclass MIMEItemPartβ This is used to attach an item part to a MIME multipart document that is being streamed. attaching an item part to a MIME multipart doc mid-stream β¨class MIMEMultipartβ A container class for multi-part MIME document objects which can be streamed to astd::ostreamdestination. container for multi-part MIME docs, streamable straight to astd::ostreamπclass MIMEMultipartFormβ The Multipart form is a MIME multipart document specific for the construction and delivery of form data to a web server through a post method. purpose-built MIME multipart for building and delivering form data to a web server via post π«Άclass Mutexβ The Mutex class is used to protect a section of code so that at any given time only a single thread can perform the protected operation. one thread at a time in the protected section, no line-jumping πclass MutexCounterβ The Mutex Counter is a counter variable which can safely be incremented or decremented by multiple threads. a counter that many threads can safely bump up and down, team effort πΈclass MutexLockβ TheMutexLockclass is used to protect a section of code so that at any given time only a single thread can perform the protected operation. same protection energy, single-thread-at-a-time, locked in π₯class NetworkDeviceInfoβ Network device information class. it's the class. for network device info. it tells you things πclass Numberβ A number manipulation class. numbers, manipulated, that's the pitch πclass objCounterβ Generic template class for creating classes which maintain an active count of the number of instances currently in active use. template that keeps a live count of how many instances are currently in use, keeping tabs πclass objListβ Used to create and manage a single linked list of objects of a common type. single linked list of same-type objects, managed for you π¦class objMapβ Used to create and manage a hash index of objects through a common type. hash index of objects, all through a common type βclass objSyncβ Generic template to create objects of a common base type which share a static mutex so that all instances of the class have a global lock. every instance shares one static mutex, so the whole class gets a global lock πclass OZStreamβ no description given, sitting quietly next to its siblingIZStream, mysterious πclass Pointerβ Used to create and manage referece counted pointers. reference counted pointers, created and managed, no leaks no drama πclass PosixThreadβ no description given, it's a PosixThread, it's threading, it's posix, iconic πclass Processβ A class for containing portable process related functions that help create portable code. portable process functions so your code stays portable, helpful king π«Άclass RandomFileβ The purpose of this class is to define a base class for low level random file access that is portable between Win32 and Posix systems. base class for low level random file access that travels between Win32 and Posix πclass ReadLockβ TheReadLockclass is used to protect a section of code through aThreadLockfor 'read' access to the member function. locks a code section via aThreadLockfor 'read' access to the member function πΈclass RefObjectβ A reference countable object. countable by reference, that's the whole personality π₯class RefPointerβ Pointer to reference counted objects. a pointer that points at reference counted objects, doing the pointing πclass Runableβ A container for objects that can be queued against a runlist. holds objects that can be queued up against a runlist π¦class Runlistβ A runlist is used to restrict concurrent exection to a limited set of concurrent sessions, much like a semaphore. caps concurrent execution to a limited set of sessions, semaphore-adjacent behavior βclass Semaphoreβ A semaphore is generally used as a synchronization object between multiple threads or to protect a limited and finite resource such as a memory or thread pool. syncs threads or guards a limited finite resource like a memory or thread pool πclass SemaphoreLockβ TheSemaphoreLockclass is used to protect a section of code through a semaphore so that only x instances of the member function may execute concurrently. protects a section so only x instances of the member function run at once, math but make it safe πclass Serialβ The Serial class is used as the base for all serial I/O services under APE. the base for every serial I/O service under APE, founding mother πclass SerialPortβ The serial port is an internal class which is attached to and then serviced by a specifiedSerialServicethread. internal class, attached to and serviced by a specifiedSerialServicethread πclass SerialServiceβ TheSerialServiceis a thead service object that is meant to service attached serial ports. a thread service object that services whatever serial ports are attached π«Άclass SharedFileβ This class defines a database I/O file service that can be shared by multiple processes. a database I/O file service shared across multiple processes, generous πΈclass SharedMemPagerβ The shared mempager uses a mutex to protect key access methods. shared mempager with a mutex guarding the key access methods π₯class SimpleTCPStreamβ Simple TCP Stream, to be used with Common C++ Library. simple TCP stream, built for the Common C++ Library, uncomplicated and proud πclass Slogβ The slog class is used to stream messages to the system's logging facility (syslogd). streams your messages to syslogd, the system logging facility π¦class Socketβ The Socket is used as the base for all Internet protocol services under Common C++. the base for every Internet protocol service under Common C++, the blueprint βclass SocketPortβ The socket port is an internal class which is attached to and then serviced by a specificSocketService'object'. internal class, attached to and serviced by a specificSocketService'object' πclass SocketServiceβ TheSocketServiceis a thread pool object that is meant to service
bestie we are NOT done yet, there is so much more coming, stay with me π β¨
attached socket ports. (yep, that's the tail end of the entry right above β we're picking up mid-list, no big deal, just vibing π«Ά)
class SSLStreamβ listed here with no blurb attached, so we're respecting the mystery β¨class SStringβ also serving silent, iconic, no notes πclass StackPagerβ this one is a whole repository for stashing and grabbing your working data in last-in-first-out order. Stack behavior, stack energy πclass Stringβ a generic and portable string class. Your everyday string bestie πclass StringObjectβ you use this one to derive subclasses that lean on the String managed memory pool for all space allocations, by overriding thenewanddeleteoperators. Memory pool queen πclass StringTokenizerβ splits a delimited string into tokens. Snip snip βοΈclass SysTimeβ your access point to the non-reentrant date and time functions sitting in the standard C library β°class TCPSessionβ primarily there to represent a client connection that can be managed on a separate thread π§΅class TCPSocketβ TCP sockets are for stream based connected sessions between two sockets πclass TCPStreamβ TCP streams represent TCP client connections to a server, used by TCP protocol servers for accepting client connections πclass TCPV6Socketβ TCPV6 sockets are for stream based connected sessions between two ipv6 sockets π«class Threadβ every single thread of execution in an application gets created by instantiating an object of a class derived from the Thread class. That's the whole vibe π§΅β¨class ThreadFileβ defines a database I/O file service that multiple threads can share π€class ThreadKeyβ lets you create a thread context unique 'pointer' that you can set and retrieve, and you can use it to build thread specific data areas for implementing 'thread safe' library routines πclass ThreadLockβ impliments a thread rwlock for optimal reader performance on systems that have rwlock support, and falls back to a simple mutex for the systems that don't. Adaptable queen πclass ThreadQueueβ a somewhat generic queue processing class, there to establish a producer consumer queue π₯π€class Timeβ uses an integer representation of the current time π’class TimerPortβ timer ports give you synchronized timing events when they're managed under a 'service thread' likeSocketServiceβ±οΈclass TTYSessionβ aggragates aTTYStreamand a Common C++Thread, which is assumed to be the execution context that'll be doing the actual I/O operations π₯οΈclass TTYStreamβ TTY streams represent serial connections that are fully 'streamable' objects, using C++ stream classes and friends πclass ttystreamβ a more natural C++ 'ttystream' class, made for non-threaded applications πclass TypeManagerβ manages the types for generation of the persistent objects ποΈclass UDPBroadcastβ represents a UDP socket used for subnet broadcasts, and gives you an alternate binding plussetPeer()capability for UDP sockets π‘class UDPDuplexβ UDP duplex connections impliment a bi-directional point-to-point UDP session between two peer hosts πclass UDPReceiveβ one half of a two-way UDP connection: the UDP receiver can receive data from another peer host or from a subnet π¨class UDPSocketβ UDP sockets implement the TCPSOCK_DGRAMUDP protocol π―class UDPTransmitβ the other half of a two-way UDP connection: the UDP transmitter can broadcast data to another selected peer host or to an entire subnet π’class UnixSessionβ the Unix domain session is used primarily to represent a client connection that can be managed on a separate thread π§΅class UnixSocketβ Unix domain sockets are for stream based connected sessions between processes on the same machine πclass unixstreamβ a more natural C++ 'unixstream' class for non-threaded applications π¦class UnixStreamβ Unix streams represent Unix domain client connections to a local server, for accepting client connections πclass URLStreamβ a URL processing version ofTCPStreamπclass WriteLockβ used to protect a section of code through aThreadLock, for 'write' access to the member function βοΈclass XMLRPCβ impliments a core XMLRPC service without the underlying transports π¦class XMLStreamβ impliments a basic XML stream parser that you can use to examine an XML resource thru virtual I/O methods πclass ZNumberβ no blurb here either. Mysterious. We love that for them π«₯
β¨ Typedefs β¨
typedef unsigned short tpport_tβ Transport Protocol Ports. The port type, right there πtypedef unsigned long pos_tβ a position type, unsigned long flavored πtypedef size_t ccxx_size_tβ size type, all dressed up πtypedef std::string_char_traits< char > cstring_char_traitsβ the char traits forcstringπtypedef std::basic_string< char > cstringβ your plain basic string ofcharπ§΅typedef std::basic_string< char, cistring_char_traits< char > > cistringβ the case-insensitive sibling ofcstringπtypedef class BaseObject *(* NewBaseObjectFunction) (void)β a function pointer type returning aBaseObject *, takingvoidπtypedef int signo_tβ signal number type,intin a trench coat π¨
π₯ Functions π₯
__EXPORT std::ostream & operator<< (std::ostream &os, const IPV4Address &ia)β streams out anIPV4Addressπ€struct in_addr getaddress (const IPV4Address &ia)β pulls thestruct in_addrout of anIPV4Addressπ__EXPORT std::ostream & operator<< (std::ostream &os, const IPV6Address &ia)β streams out anIPV6Addressπ€struct in6_addr getaddress (const IPV6Address &ia)β pulls thestruct in6_addrout of anIPV6Addressπ__EXPORT AppLog & debug (AppLog &sl)β Manipulator for debug level π__EXPORT AppLog & warn (AppLog &sl)β Manipulator for warn level β οΈ__EXPORT AppLog & error (AppLog &sl)β Manipulator for error level π«__EXPORT AppLog & emerg (AppLog &sl)β Manipulator for emerg level π¨__EXPORT AppLog & alert (AppLog &sl)β Manipulator for alert level π__EXPORT AppLog & critical (AppLog &sl)β Manipulator for critical level π__EXPORT AppLog & notice (AppLog &sl)β Manipulator for notice level π__EXPORT AppLog & info (AppLog &sl)β Manipulator for info level βΉοΈ__EXPORT CommandOptionParse * makeCommandOptionParse (int argc, char **argv, const char *comment, CommandOption *options=defaultCommandOptionList)βmakeCommandOptionParsewill create an implementation of aCommandOptionParseobject π οΈtemplate<typename T > const T & abs (const T &v)β the templated absolute value, doing its thing β__EXPORT void endKeydata (void)β ends the keydata π__EXPORT void * memmove (char *dest, const char *source, size_t length)β the portablememmoveshim π§³__EXPORT char * strdup (const char *str)β the portablestrdupshim π__EXPORT int lockf (int fd, int mode, long offset)β the portablelockfshim πchar * strtok_r (char *s, const char *d, char **x)β the portable reentrantstrtok_rshim βοΈ__EXPORT char * lsetField (char *target, size_t size, const char *src, const char fill=0)β sets a field, left-aligned, with an optionalfillπ__EXPORT char * rsetField (char *target, size_t size, const char *src, const char fill=0)β sets a field, right-aligned, with an optionalfillπ__EXPORT char * setString (char *target, size_t size, const char *src)β sets a string intotargetπ__EXPORT char * addString (char *target, size_t size, const char *src)β appends a string ontotargetβ__EXPORT char * newString (const char *src, size_t size=0)β makes you a brand new string β¨__EXPORT void delString (char *str)β deletes that string, bye bestie π__EXPORT char * setUpper (char *string, size_t size)β uppercases the string π__EXPORT char * setLower (char *string, size_t size)β lowercases the string π‘__EXPORT char * find (const char *cs, char *str, size_t len=0)β findscsinstrπ__EXPORT char * rfind (const char *cs, char *str, size_t len=0)β findscsinstr, from the back π__EXPORT char * ifind (const char *cs, char *str, size_t len=0)β findscsinstr, case-insensitively π__EXPORT char * strip (const char *cs, char *str, size_t len=0)β stripscsout ofstrπ§Ό__EXPORT size_t strchop (const char *cs, char *str, size_t len=0)β chopsstratcsπͺ__EXPORT size_t strtrim (const char *cs, char *str, size_t len=0)β trimsstrwithcsβοΈchar * dupString (const char *src, size_t size=0)β duplicates a string πͺ__EXPORT std::istream & getline (std::istream &is, String &str, char delim='0, size_t size=0)β grabs a line from the stream into aStringπ₯struct timespec * getTimeout (struct timespec *spec, timeout_t timeout)β turns atimeout_tinto astruct timespec *β³void wait (signo_t signo)β waits on a signal πThread * getThread (void)β hands you the currentThread *π§΅struct tm * localtime_r (const time_t *t, struct tm *b)β the portable reentrantlocaltime_rshim πchar * ctime_r (const time_t *t, char *buf)β the portable reentrantctime_rshim πstruct tm * gmtime_r (const time_t *t, struct tm *b)β the portable reentrantgmtime_rshim πchar * asctime_r (const struct tm *tm, char *b)β the portable reentrantasctime_rshim π
π Variables π
class __EXPORT IPV4Hostβ an exportedIPV4Hostπclass __EXPORT IPV6Hostβ an exportedIPV6Hostπ__EXPORT AppLog alogβalogglobal log stream definition π__EXPORT CommandOption * defaultCommandOptionListβ This defines a linked list head pointer for all the command line options that use the default list πclass __EXPORT MIMEMultipartβ an exportedMIMEMultipartπ§class __EXPORT MIMEItemPartβ an exportedMIMEItemPartπ§class __EXPORT Runlistβ an exportedRunlistπclass __EXPORT Runableβ an exportedRunableπclass __EXPORT MapObjectβ an exportedMapObjectπΊοΈclass __EXPORT MapIndexβ an exportedMapIndexπΊοΈclass __EXPORT SerialPortβ an exportedSerialPortπclass __EXPORT SerialServiceβ an exportedSerialServiceπ__EXPORT Slog slogβ theslogπͺ΅class __EXPORT SimpleTCPStreamβ an exportedSimpleTCPStreamπclass __EXPORT SocketPortβ an exportedSocketPortπ§¦class __EXPORT SocketServiceβ an exportedSocketServiceπ§¦class __EXPORT Threadβ an exportedThreadπ§΅class __EXPORT ThreadKeyβ an exportedThreadKeyπclass __EXPORT Conditionalβ an exportedConditionalβοΈclass __EXPORT Eventβ an exportedEventπ
π Typedef Documentation π
typedef size_t ost::ccxx_size_tβ theostnamespaced size type πtypedef std::basic_string<char, cistring_char_traits<char> > ost::cistringβ theostcase-insensitive string πtypedef std::basic_string<char> ost::cstringβ theostplain basic string ofcharπtypedef std::string_char_traits<char> ost::cstring_char_traitsβ theostchar traits forcstringπ§΅typedef class BaseObject*(* ost::NewBaseObjectFunction) (void)β theostfunction pointer type returning aBaseObject *, takingvoidπtypedef unsigned long ost::pos_tβ theostposition type πtypedef int ost::signo_tβ theostsignal number type π¨typedef unsigned short ost::tpport_tβ Transport Protocol Ports πͺ
Examples
SampleSocketPort.cpp π
β¨ Function Documentation β¨
Okay bestie, this is the big one: every single function documented here, in order, no skips, no cap. π
template<typename T > const T& ost::abs (const T & v) [inline]β literally just the signature, no extra lore in the original. slay__EXPORT char* ost::addString (char * target, size_t size, const char * src)β signature only, bestie.__EXPORT AppLog& ost::alert (AppLog & sl) [inline]β manipulator for alert level. π¨- Parameters:
slβ application logger stream
- Returns: application logger stream
- Parameters:
char* ost::asctime_r (const struct tm * tm, char * b) [inline]β no extra description, just vibes.__EXPORT AppLog& ost::critical (AppLog & sl) [inline]β manipulator for critical level. π- Parameters:
slβ application logger stream
- Returns: application logger stream
- Parameters:
char* ost::ctime_r (const time_t * t, char * buf) [inline]β signature only.__EXPORT AppLog& ost::debug (AppLog & sl) [inline]β manipulator for debug level. π- Parameters:
slβ application logger stream
- Returns: application logger stream
- Parameters:
__EXPORT void ost::delString (char * str)β signature only.char* ost::dupString (const char * src, size_t size = 0) [inline]β referencesnewString().__EXPORT AppLog& ost::emerg (AppLog & sl) [inline]β manipulator for emerg level. π- Parameters:
slβ application logger stream
- Returns: application logger stream
- Parameters:
__EXPORT void ost::endKeydata (void)β this should be used before detaching a deamon,exec(),fork(), etc. Referencesost::Keydata::end().__EXPORT AppLog& ost::error (AppLog & sl) [inline]β manipulator for error level. β- Parameters:
slβ application logger stream
- Returns: application logger stream
- Referenced by
ost::RandomFile::error(),ost::Serial::error(), andost::Socket::error().
- Parameters:
__EXPORT char* ost::find (const char * cs, char * str, size_t len = 0)β referenced byost::String::find().struct in_addr ost::getaddress (const IPV4Address & ia) [inline]β signature only.struct in6_addr ost::getaddress (const IPV6Address & ia) [inline]β signature only.__EXPORT std::istream& ost::getline (std::istream & is, String & str, char delim = '0, size_t size = 0)β okay so this one has parameters.- Parameters:
isβ stream to read.strβ string to save into.delimβ deliminator to use.sizeβ optional size limitor.
- Parameters:
Thread* ost::getThread (void) [inline]β referencesost::Thread::get().struct timespec* ost::getTimeout (struct timespec * spec, timeout_t timeout)β signature only.struct tm* ost::gmtime_r (const time_t * t, struct tm * b) [inline]β referencesost::SysTime::getGMTTime().__EXPORT char* ost::ifind (const char * cs, char * str, size_t len = 0)β signature only.__EXPORT AppLog& ost::info (AppLog & sl) [inline]β manipulator for info level. βΉοΈ- Parameters:
slβ application logger stream
- Returns: application logger stream
- Parameters:
struct tm* ost::localtime_r (const time_t * t, struct tm * b) [inline]β referencesost::SysTime::getLocalTime().__EXPORT int ost::lockf (int fd, int mode, long offset)β signature only.__EXPORT char* ost::lsetField (char * target, size_t size, const char * src, const char fill = 0)β signature only.__EXPORT CommandOptionParse* ost::makeCommandOptionParse (int argc, char ** argv, const char * comment, CommandOption * options = defaultCommandOptionList)βmakeCommandOptionParsewill create an implementation of aCommandOptionParseobject. This particular implementation is a wrapper aroundgetopt_long(3). That interface unfortunatly does not provide enough information to give the best error messages with malformed input. If the implementation changes there is a good chance that the binary interface will remain the same.- Examples:
cmdlineopt.cpp.
- Examples:
__EXPORT void* ost::memmove (char * dest, const char * source, size_t length)β signature only.__EXPORT char* ost::newString (const char * src, size_t size = 0)β referenced bydupString().__EXPORT AppLog& ost::notice (AppLog & sl) [inline]β manipulator for notice level. π- Parameters:
slβ application logger stream
- Returns: application logger stream
- Parameters:
__EXPORT std::ostream& ost::operator<< (std::ostream & os, const IPV4Address & ia)β signature only.__EXPORT std::ostream& ost::operator<< (std::ostream & os, const IPV6Address & ia)β signature only.__EXPORT char* ost::rfind (const char * cs, char * str, size_t len = 0)β signature only.__EXPORT char* ost::rsetField (char * target, size_t size, const char * src, const char fill = 0)β signature only.__EXPORT char* ost::setLower (char * string, size_t size)β signature only.__EXPORT char* ost::setString (char * target, size_t size, const char * src)β signature only.__EXPORT char* ost::setUpper (char * string, size_t size)β signature only.__EXPORT size_t ost::strchop (const char * cs, char * str, size_t len = 0)β referenced byost::String::chop().__EXPORT char* ost::strdup (const char * str)β signature only.__EXPORT char* ost::strip (const char * cs, char * str, size_t len = 0)β signature only.char* ost::strtok_r (char * s, const char * d, char ** x) [inline]β signature only.__EXPORT size_t ost::strtrim (const char * cs, char * str, size_t len = 0)β referenced byost::String::trim().void ost::wait (signo_t signo)β signature only, but it has examples.- Examples:
cmdlineopt.cpp.
- Examples:
__EXPORT AppLog& ost::warn (AppLog & sl) [inline]β manipulator for warn level. β οΈ- Parameters:
slβ application logger stream
- Returns: application logger stream
- Parameters:
π Variable Documentation π
__EXPORT AppLog ost::alog [extern]βalogglobal log stream definition.class __EXPORT ost::Conditionalβ class declaration, no extra tea.__EXPORT CommandOption* ost::defaultCommandOptionList [extern]β this defines a linked list head pointer for all the command line options that use the default list. It will most likely be used in most cases without being explicitly referenced in application code. It is a default value of various method's parameters.- Examples:
cmdlineopt.cpp.
- Examples:
class __EXPORT ost::Eventβ class declaration.class __EXPORT ost::IPV4Hostβ class declaration.class __EXPORT ost::IPV6Hostβ class declaration.class __EXPORT ost::MapIndexβ class declaration.class __EXPORT ost::MapObjectβ class declaration.class __EXPORT ost::MIMEItemPartβ class declaration.class __EXPORT ost::MIMEMultipartβ class declaration.class __EXPORT ost::Runableβ class declaration.class __EXPORT ost::Runlistβ class declaration.class __EXPORT ost::SerialPortβ class declaration.class __EXPORT ost::SerialServiceβ class declaration.class __EXPORT ost::SimpleTCPStreamβ class declaration.__EXPORT Slog ost::slog [extern]β no description given.- Examples:
slogTest.cpp.
- Examples:
class __EXPORT ost::SocketPortβ class declaration.- Examples:
SampleSocketPort.cpp.
- Examples:
class __EXPORT ost::SocketServiceβ class declaration.- Examples:
SampleSocketPort.cpp, andtcpservice.cpp.
- Examples:
class __EXPORT ost::Threadβ class declaration.- Examples:
SampleSocketPort.cpp.
- Examples:
class __EXPORT ost::ThreadKeyβ class declaration.
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code. Slay. β¨
This page is from GNU CommonC++ and dated Sun Dec 27 2020, and it's ost(3) forever. Bye bestie! π
π¦
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms